Questions tagged «advantage-database-server»

5
如何在WHERE子句中使用SELECT语句编写SQL DELETE语句?
数据库:Sybase Advantage 11 在寻求标准化数据的过程中,我试图删除从以下SELECT语句中得到的结果: SELECT tableA.entitynum FROM tableA q INNER JOIN tableB u on (u.qlabel = q.entityrole AND u.fieldnum = q.fieldnum) WHERE (LENGTH(q.memotext) NOT IN (8,9,10) OR q.memotext NOT LIKE '%/%/%') AND (u.FldFormat = 'Date') ; 这是DELETE我想出的声明: DELETE FROM tableA WHERE (SELECT q.entitynum FROM tableA q INNER JOIN tableB u …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.