话说MySQL <>和!=
2016-07-11 00:00
471 查看
摘要: 话说MySQL <>和!= 有木有区别
话说MySQL两种不等号(!=和<>):
《MySQL必知必会》P37页的6.2.2不匹配检查末有
SELECT vend_id,prod_name
FROM products
WHERE vend_id !=1003;
和
SELECT vend_id,prod_name
FROM products
WHERE vend_id <>1003;
想说明<>和!=有什么区别,结果是:
The != operator is converted to <> in the parser stage. It is not possible to implement != and <> operators that do different things.
没区别。。。
参考:1、http://stackoverflow.com/questions/7040305/whats-the-difference-between-and-in-mysql
2、http://www.sql.org/sql-database/postgresql/manual/functions-comparison.html
话说MySQL两种不等号(!=和<>):
《MySQL必知必会》P37页的6.2.2不匹配检查末有
SELECT vend_id,prod_name
FROM products
WHERE vend_id !=1003;
和
SELECT vend_id,prod_name
FROM products
WHERE vend_id <>1003;
想说明<>和!=有什么区别,结果是:
The != operator is converted to <> in the parser stage. It is not possible to implement != and <> operators that do different things.
没区别。。。
参考:1、http://stackoverflow.com/questions/7040305/whats-the-difference-between-and-in-mysql
2、http://www.sql.org/sql-database/postgresql/manual/functions-comparison.html
相关文章推荐
- mysql 实现类似rownum伪列
- mysql数据库存储中文数据的解决办法
- MySQL局域网访问配置
- MySQL读书笔记-并发控制
- UNIX_TIMESTAMP 与 FROM_UNIXTIME
- MySQL:数据库基础和workbench介绍
- MySQL5.6 二进制安装
- MYsql-3
- 解决mysql无法远程登录的问题
- mysql引擎问题研究
- mysql 距离函数
- Ubuntu下忘记MySQL root密码解决方法
- mysql联合查询
- mysql的mvcc(多版本并发控制)
- mysql 主从配置(master slave)
- dos界面操作mysql讲解
- Mysql常见sql
- 如何将 JSON, Text, XML, CSV 数据文件导入 MySQL
- mysql的普通索引,唯一索引,主索引
- MySQL的安装和启动