0
我有以下選擇命令:中選擇命令System.Data.SQLite邏輯錯誤
Dim nCmdSel As SQLite.SQLiteCommand = cnApp.CreateCommand
With nCmdSel
.CommandText = "SELECT word, priority FROM mf WHERE word LIKE " & _
"@word% " & _
"ORDER BY priority DESC LIMIT 100"
.Parameters.Add("@word", DbType.String).Value = sThisWord
End With
r = nCmdSel.ExecuteReader()
我收到錯誤
"SQL logic error near ORDER:"
但我不明白,我犯了一個錯誤。 有人看到它嗎?
謝謝!