服务器端导入MySql.Data.dll包并using MySql.Data.MySqlClient; 用mysql的存储过程查询表中的数据 mysql数据库 tb_users表 use test; DROP TABLE IF EXISTS tb_users; CREATE TABLE IF NOT EXISTS tb_users ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, password VARCHAR(50) NOT NU
存储过程的讲解DECLARE @T INT DECLARE @count INT SET @T=6 SET @count=1 WHILE @count<=@T BEGIN PRINT SPACE(@T-@count)+Replicate('*',@count*2-1) SELECT @count=@count+1 END