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.
有没有我可以运行的命令什么都不做(或很少做)永远不会出错?
我需要一些东西来测试海豚。
注释什么都不做(但如果根本没有命令,您的数据库驱动程序可能会抱怨):
/* Hello, world! */
未知的PRAGMA语句被忽略,并且不返回任何内容:
PRAGMA testing_porpoises;
如果需要返回空结果集的语句,则需要 SELECT:
SELECT 0 WHERE 0;
例如一个简单的常量选择可以做:
SELECT 1 WHERE 0;