您的位置首页百科知识

mysql怎么使用if.else.来查询

mysql怎么使用if.else.来查询

你可以试一下先输入select 'printSEQ'数扰 from 'policyexpress'斗毕颤 where policyno='000000600326 ' into '@cnt';再输入空败if '@cnt' ='' then update policyexpress set printSEQ = '212121212' where policyno = '000000600326';end if