嘗試這些:WebDB - SQLLite LIKE語法...逃避我
tx.executeSql( 「SELECT * FROM Animal_Traits WHERE animalName LIKE%%或性狀LIKE%%ORDER BY animalName?」,[searchValue,searchValue ],
與這一個,我聽說%符號的語法休息......所以如果我試試這個:
tx.executeSql(「SELECT * FROM Animal_Traits WHERE animalName LIKE '%'? '%'或特徵LIKE'%'?'%'ORDER BY animalName「,[searchValue,searchValue],
and it告訴我的語法中斷?符號...(猜猜第一個?)如果我試過這個:
tx.executeSql(「SELECT * FROM Animal_Traits WHERE animalName LIKE'%?%'OR trait LIKE'%?%'ORDER BY animalName」 [searchValue,searchValue],
它告訴我的參數不匹配的數量......哎呀!
有人可以幫我請。
感謝!
那就是它!謝謝!!!! – 2012-01-31 03:46:17