读书人

sql语句换行的有关问题

发布时间: 2013-03-21 10:08:17 作者: rapoo

sql语句换行的问题

今天在执行SQL语句时发现错误,

SQL语句是这样的:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desclimit 0,13  LIMIT 0, 1000' at line 1

原来,我在换行的时候desc后并没有留空格,在一行时还容易被发现,换行后很容器被骗到

在desc后打一个空格,解决问题。

读书人网 >SQL Server

热点推荐