我有這樣的條款:SQL:子句新手語法錯誤
"Select *
From
(
Select sedi_i18n.*,
0 orden
From table sedi_i18n
Where culture= 'italiano'
Union
Select sedi_i18n.*, 1 orden
From table sedi_i18n
Where culture<> 'italiano'
)
Order By orden, culture";
但我發現了這個錯誤:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table sedi_i18n Where culture= 'italiano' Union Select sedi_i18n.*, 1 or' at line 6
任何想法?
問候
哈維