2020年6月21日

摘要: 一组事务,要么同时成功,要么同时失败 1. 手动提交: set autocommit=False或者0 作用范围是一次连接 一组sql语句,知道commit或者rollback才算结束 只能用于命令行 /* start TRANSACTION;insert into employee values( 阅读全文
posted @ 2020-06-21 08:00 happygril3 阅读(135) 评论(0) 推荐(0)
摘要: (一)单行函数:只对某一行做运算 1.数学函数 round():四舍五入 truncate():只保留位数 #select salary ,round(salary,1) as salary_round,truncate(salary,1) as salary_truncate from emplo 阅读全文
posted @ 2020-06-21 07:34 happygril3 阅读(57) 评论(0) 推荐(0)

导航