摘要: 数值型 理解精度 number类型的精度表示可以标识数据精确度的位数。对于数字13245.977,当精确到小数点后2位,数据为12345.98,此时精度为7。而当精确到小数点前2位,数据为12300,此时精度为3,因为有3个数字对数据的准确度作出贡献 精度与小数位数 number类型中。小数位数可正 阅读全文
posted @ 2018-02-03 18:00 NE_STOP 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 字符型简介 固定长度字符串-char(n) n代表字符串的长度,当实际长度不足时,利用空格在右端补齐,n的最大值不能大于2000。所以只要是固定长度的字符串,他的length(值)的长度总为n varchar(n) 可变长度字符串,当实际长度不足时,不使用空格进行补充,同样长度也不许超出n。当作为列 阅读全文
posted @ 2018-02-03 16:08 NE_STOP 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 插入数据-insert 单条插入 insert into 表名 (列1,列2...)values(值1,值2...) 批量插入 insert into c_student(student_id,student_name) select student_id,student_name from stu 阅读全文
posted @ 2018-02-03 15:08 NE_STOP 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 查询 select employee_name from employees where 子句 select employee_name from employees where employee_age>25 根据2个数据表查询 select e.employee,s.salary from em 阅读全文
posted @ 2018-02-03 14:41 NE_STOP 阅读(3) 评论(0) 推荐(0) 编辑