sql使用的生僻函数
cast函数 语法:cast(str as Decimal(20,3)) str指字段;Decimal指需要转化的类型,20指函数字段值得位数,3指小数点后的位数 case when函数 语法: case 字段 when 条件 Then else 表达式 en … 阅读全文
cast函数 语法:cast(str as Decimal(20,3)) str指字段;Decimal指需要转化的类型,20指函数字段值得位数,3指小数点后的位数 case when函数 语法: case 字段 when 条件 Then else 表达式 en … 阅读全文
1G阿里服务器mysql总挂掉原因!
表数据 CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `cid` int(11) DEFAULT NULL, P … 阅读全文
sql语句 左关联查询 语法: select * FROM tb_omp_shop_order tso LEFT JOIN tb_omp_peroid_detail tpd ON tso.order_no = tpd.order_no AND tpd.data … 阅读全文