可遇不可求的Question之MySql4.0前版本不支持union與批量SQL提交

批量SQL提交html

參考 21.2.6. Connector/NET Connection String Options Referencemysql

Allow Batch true When true, multiple SQL statements can be sent with one command execution. -Note- Starting with MySQL 4.1.1, batch statements should be separated by the server-defined separator character. Commands sent to earlier versions of MySQL should be separated with ';'.

Allow Batch 只從MySQL 4.1.1以後 才支持.sql

 

union 在3.0版本中是不支持的.spa

 

12.2.7. SELECT Syntaxcode

http://dev.mysql.com/doc/refman/4.1/en/select.htmlserver

 

Support for UNION statements and subqueries is available as of MySQL 4.0 and 4.1, respectively. See Section 12.2.7.3, 「UNION Syntax」, and Section 12.2.8, 「Subquery Syntax」.htm

 

 

12.2.7.3. UNION Syntax

SELECT ...
UNION [ALL | DISTINCT] SELECT ...
[UNION [ALL | DISTINCT] SELECT ...]

UNION is used to combine the result from multiple SELECT statements into a single result set. UNION is available from MySQL 4.0.0 on.blog

相關文章
相關標籤/搜索