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.
我试过这些:
1.if (EXEC SQL EXIST SELECT ...) 2.EXEC SQL IF EXIST SELECT ...
但这些都不起作用,有什么帮助吗?
选择计数并检查它是否为零。沿着这条线的东西:
int a; EXEC SQL SELECT count(*) INTO :a FROM some_table WHERE some_condition; if (a != 0)...