自动更新字段 呵呵。好像不行,我看还是用trigger,或用过程等来实现吧。偶尔用一下trigger问题不大的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 oracle不允许在建表时决省带有其它字段如下:SQL> create table temp 2 (tradedate char(8) not null, 3 trademonth char(6) default (substr(tradedate,1,6));create table temp(tradedate char(8) not null,trademonth char(6) default (substr(tradedate,1,6))ORA-00984: 列在此处不允许 在INSERT的时候同时处理不就可以了,反正就是一个INSERT语句insert into temp (tradedate,trademonth) values('20040101',SUBSTR('20040101',1,6); 如果在后台,最好使用Trigger,可以保证你的事务逻辑的完整性,同时简化系统的设计量. 批量删除数据的存储过程怎么写 在线等,急!!! ORACLE关于sql语句优化问题 如何查询具有某个角色或系统权限的所有用户? 500分讨教有没有高人做过表的置乱算法-求教达人指教了 oracle数据导出工具 如何将FRXPRO的数据倒入到ORALCE中 如何添加字段到任意位置 紧急!!为什么这个sql文件在sqlplus中执行出错?? 请问oracle 9i的硬件配置要求?我的可以吗? 新人求教Oracle在安装完后配置完监听和服务后测试连接不上 请教高手,oracle存储过程如何接受数组,给60分,给个例子; 跪求oracle数据库应用程序,打包方案!
如下:
SQL> create table temp
2 (tradedate char(8) not null,
3 trademonth char(6) default (substr(tradedate,1,6));create table temp
(tradedate char(8) not null,
trademonth char(6) default (substr(tradedate,1,6))ORA-00984: 列在此处不允许
insert into temp (tradedate,trademonth) values('20040101',SUBSTR('20040101',1,6);