数据库
zhuhao717
这个作者很懒,什么都没留下…
展开
-
Mysql在delete时不支持别名,我也是醉了
mysql在delete下不能直接像oracle一样使用别名 会产生语法错误delete from t_bookmark o where o.bookmark_type = '2' and o.user_id =123会报错[Err] 1064 - You have an error in your SQL syntax; check the manual that co原创 2015-04-17 15:56:21 · 1666 阅读 · 1 评论 -
SQL 函数 instr的用法
INSTR(C1,C2,I,J)在一个字符串中搜索指定的字符,返回发现指定的字符的位置;C1 被搜索的字符串C2 希望搜索的字符串I 搜索的开始位置,默认为1J 出现的位置,默认为1SQL> select instr('tyyd','y') from dual;结果是2,即在字符串“tyyd”里面,字符串“y”出现在第2个位置。如果没有找到,则返回0;不原创 2015-08-28 15:44:37 · 1123 阅读 · 0 评论 -
问题五20150907Mysql版本不一致错误
本机用的是mysql5.6 应用工程里用的驱动包是mysql-connector-java-5.1.5 与数据库交互时报错:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nea原创 2015-09-07 11:48:16 · 737 阅读 · 0 评论