0
我需要檢查我正在執行的select
操作是否返回任何行。
有人可以幫助我這個。用於檢查選擇操作是否返回行的SQL查詢
我正在使用shell腳本,因此我無法將其保存在變量中並進行檢查。我需要在飛行中檢查。我知道我可以使用計數開關。但有人可以幫我的語法?
例如,我需要檢查:
--Now this query should return some data
select * from error_repository_BKP partition(part_maxval);