Answers for "how to check if a tbale is empty in sql"

SQL
5

sql empty table

-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With possible rollback
DELETE FROM my_table;
COMMIT;  -- or ROLLBACK;
Posted by: Guest on February-27-2021
0

sql if empty then

SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable
Posted by: Guest on March-03-2021

Code answers related to "how to check if a tbale is empty in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language