摘要: CREATE PROCEDURE `test_insert_stu`() BEGIN DECLARE num INT; SET num = 0; WHILE (num<10) DO insert into test_student_info(name) values(concat('zb',num)); set num=num+1; END WHILE; END 阅读全文
posted @ 2016-10-12 14:39 梦见舟 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 例子如下: 阅读全文
posted @ 2016-10-12 14:06 梦见舟 阅读(625) 评论(0) 推荐(0) 编辑
摘要: mysql> SELECT 1+1; # This comment continues to the end of line mysql> SELECT 1+1; -- This comment continues to the end of line /* this is an in-line comment */ 阅读全文
posted @ 2016-10-12 13:55 梦见舟 阅读(88) 评论(0) 推荐(0) 编辑