all.sqlt 161 B

123456789
  1. #判断某实体是否存在
  2. #sql("hasRecord")
  3. select exists(
  4. select 1 from #(_PARA_ARRAY_[0])
  5. where chainId=#para(1) and hash=#para(2)
  6. limit 1
  7. )
  8. #end