情境
原先架構在 MS 的 Access 所以會有 mdb 檔案, 在 Access 裡頭可以看到一些既存的 Query 點 Design View 之後再去視窗上方按右鍵可以看到 SQL View
困境
把這樣的一串 SQL 丟到轉好的 phpMySQL 去執行是會發生問題的一堆 Syntax Error
原因
當初設計 Table 的人, 名稱設計不良用了空白在 table name, 導致 SQL 語法中要用到很多 [ ] 去把包含空白的 table 包起來。
解法
訂閱:
文章 (Atom)
Python TypeError: 'module' object is not callable
程式碼其實相當簡單 import random random.random() 那問題出在哪?出在當初的檔名取名為 random.py 結果造成 Python 在 import 的時候造成問題。所以在取名Python 的檔名時,切記不要取成跟 Default Module...
-
I'm used to develop code in C, however someday I meet the need which the code was written in Delphi. The amazing fact in Delphi is the...
-
程式碼其實相當簡單 import random random.random() 那問題出在哪?出在當初的檔名取名為 random.py 結果造成 Python 在 import 的時候造成問題。所以在取名Python 的檔名時,切記不要取成跟 Default Module...
-
很簡單,要去 INFORMATION_SCHEMA 撈資料 SELECT create_time FROM INFORMATION_SCHEMA . TABLES WHERE table_schema = '資料庫名稱' AND table...