sql中select语句中的语法错误

时间:2015-04-10 16:48:40

标签: sql

在命令中:

SELECT * FROM "Messages" author = 'spikinas' )

我得到了:

near "=": syntax error: 

我应该如何更改命令行才能使用?

2 个答案:

答案 0 :(得分:2)

SELECT * FROM "Messages" WHERE author = 'spikinas'

答案 1 :(得分:0)

SELECT *
FROM "Name Of Your Table Without the Quotes"
WHERE author = 'spikinas'

确保'spikinas'以LOWER CASE开头,如果没有将sql更改为'Spikinas'UPPER CASE S