+ -
当前位置:首页 → 问答吧 → 关于update的问题

关于update的问题

时间:2011-12-28

来源:互联网

update authors set author_first='li' where author_first='lee';

这条语句在mysql中会报错 但是我在oracle可以正常执行

这是什么原因 或者应该这么改呢?

作者: ttigerdna   发布时间: 2011-12-28

不会报错。
你的错误信息是什么?

作者: ACMAIN_CHM   发布时间: 2011-12-28

0 21:07:26 update authors set author_first='li' where author_first='lee' Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor -> Query Editor and reconnect.

作者: ttigerdna   发布时间: 2011-12-28

我想是不是你的“”双引号的问题?~''

作者: fac123123   发布时间: 2011-12-28

不是的

作者: ttigerdna   发布时间: 2011-12-28

mysql 5.5

作者: ttigerdna   发布时间: 2011-12-28

在什么工具中执行的? 换个试试。。

作者: jordan102   发布时间: 2011-12-28

会不会全角 半角的原因

作者: arfrian   发布时间: 2011-12-28

MYSQL 自带的 Workbench

作者: ttigerdna   发布时间: 2011-12-28

是不是主键 还是什么约束了~

作者: hllfl   发布时间: 2011-12-28