修改mysql默认字符集的方法:mysql的默认编码是Latin1,不支持中文,应该设置为utf8查看自己的数据库编码是否已设置好 (0) 1.如果mysql安装目录下,有后缀名为:.ini的配置文件,复制一份,修改为my.ini 2.如果mysql安装目录下,没有.ini文件,则创建一个普通txt Read More
posted @ 2017-12-18 17:46 愤怒的蜗牛哥 Views(125) Comments(0) Diggs(0)
触发器是一种与表操作有关的数据库对象,当触发器所在表上出现指定事件时,将调用该对象,即表的操作事件触发表上的触发器的执行。 创建触发器: 在MySQL中,创建触发器语法如下: CREATE TRIGGER trigger_name trigger_time trigger_event ON tbl_ Read More
posted @ 2017-12-18 17:30 愤怒的蜗牛哥 Views(163) Comments(0) Diggs(0)
1、什么是较对集合:字符集的字符比较规则(collation,collate),一个字符集有多个较对集合。 mysql> create table ss (id int primary key auto_increment, -> cc char(10)); insert into ss value Read More
posted @ 2017-12-18 16:01 愤怒的蜗牛哥 Views(349) Comments(0) Diggs(0)
事务(Transaction):ts,一般是指要做的或所做的事情。 例如:转账问题。 mysql> create table ac (id int primary key auto_increment, -> ac_name char(10),ac_money int); Query OK, 0 r Read More
posted @ 2017-12-18 15:52 愤怒的蜗牛哥 Views(234) Comments(0) Diggs(0)