摘要:
CREATE TABLE IF NOT EXISTS `student1` ( `id` INT(4) NOT NULL AUTO_INCREMENT COMMENT '学号', `name` VARCHAR(30) NOT NULL DEFAULT '匿名' COMMENT '姓名', `pwd` 阅读全文
摘要:
MySQL支持多种类型,大致可以分为三类:数值、日期/时间和字符串(字符)类型还有NULL; 数值类型 tinyint 十分小的数据 一个字节 smallint 较小的数据 , 两个字节 mediumint 中等大小的数据 三个字节 int 标准的整数 四个字节 big 较大的数据 八个字节 flo 阅读全文
摘要:
public class Demo { public static void main(String[] args) { //冒泡排序 int[] ints = {3,2,43,54,32,22,-2,34,66,35}; int temp; for (int i = 0; i < ints.len 阅读全文
摘要:
utf8_bin 区分大小写 utf8_general_ci 不区分大小写 utf8_unicode_ci 不区分大小写 一句话概况:utf8_unicode_ci比较准确,utf8_general_ci速度比较快 utf8_unicode_ci比较准确,utf8_general_ci速度比较快。通 阅读全文
摘要:
CREATE DATABASE IF NOT EXISTS westos -- 创建数据库 DROP DATABASE IF EXISTS westiis -- 删除数据库 USE `mybatis` -- 使用数据库 CREATE DATABASE IF NOT EXISTS school CHA 阅读全文
摘要:
命令窗口 1: mysql -uroot -p Enter password:****** 2: mysql -uroot -proot mysql -h localhost -P 3306 -u root -proot 注意:-P 大写的P 后面密码-p直接跟密码root 中间不能有空格 如果没有 阅读全文