(与 SQL Server 相关的类似问题:SO Link)
我知道在 Sql Server 2008 或更高版本中,您可以执行以下操作插入多行:
INSERT INTO MyTable (Name, ID)
VALUES ('First',1), ('Second',2), ('Third',3)
但是,似乎此语法在 Sybase Adaptive Server Enterprise 中不起作用,因为这会给我一个错误..
有人知道 Sybase 中实现相同功能的语法吗?
Sybase ASE 基于 Transact SQL..
谢谢
最佳答案
Sybase 没有 SQL Server 的插入语法。下面显示的经典方法有什么问题?
INSERT INTO MyTable (Name, ID) VALUES ('First',1)
INSERT INTO MyTable (Name, ID) VALUES ('Second',2)
INSERT INTO MyTable (Name, ID) VALUES ('Third',3)
go
关于sql - 在 Sybase ASE 中插入多行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24635327/