mysql
cy609329119
这个作者很懒,什么都没留下…
展开
-
启动mysql服务
windows进入mysql的bin目录 执行net start mysql原创 2016-07-10 08:22:37 · 332 阅读 · 0 评论 -
MySQL使用INSERT插入多条记录
INSERT INTO users(name, age)VALUES(‘姚明’, 25), (‘比尔.盖茨’, 50), (‘火星人’, 600);原创 2016-07-23 08:27:04 · 15944 阅读 · 0 评论 -
创建存储过程
delimiter // create procedure myproc() begin declare num int; set num=1; while num < 10 do insert into t_tag(tag_name, tag_desc) values(concat(“tag”, num), concat(“tag”, num)); set num=num+1原创 2016-07-23 09:32:44 · 326 阅读 · 0 评论 -
mysql Access denied for user \'root\'@\'localhost\'”解决办法
update mysql.proc set definer=’root@localhost’;原创 2016-07-23 09:36:21 · 293 阅读 · 0 评论 -
修改MySQL存储过程、函数、事件、触发器、视图的DEFINER
修改存储过程、函数、事件、触发器、视图的 DEFINERselect definer from mysql.proc; update mysql.proc set definer=’billing@%’;select DEFINER from mysql.EVENTS; update mysql.EVENTS set definer=’billing@%’;select DEFINER from原创 2016-07-23 09:38:10 · 2341 阅读 · 0 评论 -
mysql 显示所有的数据库
1、显示数据库列表。 show databases; 2、显示库中的数据表: use mysql; show tables; 3、显示数据表的结构: describe 表名; 4、建库: create database 库名; 5、建表: use 库名; create table 表名 (字段设定列表); 6、删库和删表: drop database原创 2016-07-24 08:29:27 · 425 阅读 · 0 评论 -
mysql字符串拼接,存储过程
MySQL concat函数可以连接一个或者多个字符串,如 select concat(‘10’); 结果:10 select concat(‘11’,’22’,’33’); 结果 112233 MySQL的concat函数在连接字符串的时候,只要其中一个是NULL,那么将返回NULL select concat(‘11’,’22’,null); 结果 NULLconcat(b.原创 2016-07-24 08:53:45 · 4001 阅读 · 0 评论 -
MySQL 5.6 for Windows 解压缩版配置安装
MySQL安装文件分为两种,一种是msi格式的,一种是zip格式的。如果是msi格式的可以直接点击安装,按照它给出的安装提示进行安装(相信大家的英文可以看懂英文提示),一般MySQL将会安装在C:\Program Files\MySQL\MySQL Server 5.6 该目录中;zip格式是自己解压,解压缩之后其实MySQL就可以使用了,但是要进行配置。解压之后可以将该文件夹改名,放到合适的位置,转载 2016-07-03 09:34:47 · 327 阅读 · 0 评论