鴻飛

导航

 

2017年7月15日

摘要: BEGIN #定义一个变量来保存该记录是否存在 declare num int; #这条sql,就是查询对应的记录有多少条,注意 into num 这两句话,就是把count(*) 查出的值,赋给到num中 select count(*) into num from t_count_view whe 阅读全文
posted @ 2017-07-15 10:09 鴻飛 阅读(550) 评论(0) 推荐(0)