Cannot resolve the collation conflict between "SQL_Latin1_Gen
2015-06-01 16:49
676 查看
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI
有时sql语句查询会包这个错误,加上下面红色部分就好了。
update t1 set Status=2
from t1 a inner join t2 b on (a.BoxID=b.Box_Id collate Chinese_PRC_CI_AS)
inner join t3 c on(b.Serial_No=c.Serial_No and b.MO=c.MO and c.Id=34)
update table1
set table1.name=’abc’
from table1
inner join table2
on table1.id = table2.id
where table2.number = '123'
delete from table1
from table1
inner join table2
on table1.id = table2.id
注意蓝色部分,这样就可以省掉复杂的中间表了^_^
有时sql语句查询会包这个错误,加上下面红色部分就好了。
update t1 set Status=2
from t1 a inner join t2 b on (a.BoxID=b.Box_Id collate Chinese_PRC_CI_AS)
inner join t3 c on(b.Serial_No=c.Serial_No and b.MO=c.MO and c.Id=34)
update table1
set table1.name=’abc’
from table1
inner join table2
on table1.id = table2.id
where table2.number = '123'
delete from table1
from table1
inner join table2
on table1.id = table2.id
注意蓝色部分,这样就可以省掉复杂的中间表了^_^
相关文章推荐
- mysql命令行以及mysql workbence查询结果中文乱码的解决方法
- oracle定时运行 存储过程
- 设置oracle归档模式时ORA-16033路径不一致
- sql注释
- mysqldump: command not found问题解决
- mysql in 子查询 效率慢 优化
- 查询数据库中的所有外键信息
- Mysql函数instr、locate、position VS like
- CentOS中Redis的启动文件
- 由于ORACLE_SID未设定造成的ora-12162 错误
- XenDesktop 数据库恢复测试,切换新的数据库
- mongoDB authentication
- Navicat 2003-can't connect to MYSQL server on 'localhost'(10061)
- Oracle表分区
- mysql left( right ) join使用on 与where 筛选的差异
- win8升级到8.1后的种种麻烦(鼠标+QQ游戏+MySQL+用户账户)
- (7.2.6)SQL 合并多行记录的方法总汇
- 查询oracle中所有用户信息
- 【数据管理和数据库的发展史】唯有源头活水来——数据库学习之路(1)
- mysql 1130