Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のクエリを試したい同僚がいます。
INSERT INTO table (ColumnA, ColumnB, ColumnC) VALUES (?, (SELECT Id FROM ColumnD WHERE x=y), ?)
クエリのVALUES部分でサブクエリを許可していないように見えるため、Sybaseはこれについて不平を言います。誰かがこの問題を回避する方法を知っていますか?
どうですか:
INSERT INTO table (ColumnA, ColumnB, ColumnC) SELECT ?, Id, ? FROM TableD WHERE x = y
(または類似)