我做錯了什麼?有沒有一些C#翻譯麻煩或什麼?你的SQL語法有錯誤
string commandText =
@"SELECT sc.sc_n,
sc.provider_n,
sc.sc_external_id,
sc.sc_external_name
FROM t_supplier_codification sc
WHERE sc.product_articul IS NULL
AND (sc.sc_external_name != "")
AND sc_count >= 1
AND provider_n=19
AND LENGTH(sc.sc_external_name)>=10
AND sc_external_name NOT LIKE '%лента%'
AND sc_external_name NOT LIKE '%камера%'
AND sc_external_name NOT LIKE '%Replica%'
AND sc_external_name NOT LIKE '%ET%'
AND sc_external_name LIKE ''
ORDER BY sc_external_name";
你在你的SQL語法錯誤:
檢查對應於你的MySQL服務器版本使用附近的「「正確的語法手冊)和sc_count> = 1 AND provider_n = 19和長度
'(!sc.sc_external_name = '')' – lad2025
你可能想逃生者在_name!=「」中使用雙引號或使用單引號 –