0

以下のSQL行の何が問題になっていますか

関連する行:

SELECT * 
  FROM glossary.csv 
 WHERE source NOT IN ('AIS','AIP','ICAO','WATOG','ICAO/AIP') 
  AND NOT LIKE('CASR%')"

エラー:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Text Driver] Syntax error (missing operator) in query expression 'source NOT IN ('AIS','AIP','ICAO','WATOG','ICAO/AIP') AND NOT LIKE('CASR%')'.

/junk/glossary.asp, line 20
4

1 に答える 1

6

where句の2番目の部分で列名を見逃しました:

"SELECT * FROM glossary.csv 
 WHERE source NOT IN ('AIS','AIP','ICAO','WATOG','ICAO/AIP') 
 AND source  NOT LIKE 'CASR%'"
于 2013-02-11T01:13:06.217 に答える