标签:默认值 nbsp 数据库 默认 mes drop 汇总 ble HERE
一.对数据库原有字段默认值的设置
1.删除原有字段默认值
alter table sr_main_ww alter column main_bz_sam02 drop default;
2..重写原有字段默认值
alter table sr_main_ww alter column main_bz_sam02 set default 0;
二.
//申请,超过一天未做核对
SELECT
f_lookup(1137,mdjlx) as mdjlx ,count(1) as ncount
FROM
sr_main
WHERE
sys_scbj = 0
AND sys_spzt = 99
AND sys_spdj = 2
AND wthdbj = ‘2‘
and TIMESTAMPDIFF(DAY,sys_shrq,SYSDATE())>1
GROUP BY mdjlx;
标签:默认值 nbsp 数据库 默认 mes drop 汇总 ble HERE
原文地址:https://www.cnblogs.com/tongcc/p/11300118.html