若rescriptNo为Numeric类型 Insert into fp_psstreamNoList(prescriptNo) values(2000)
可以了啊!Values后面加一个括号。你那有问题吗?
那没问题,在这我没写,系统提示说:column OPERATORID is restricted with NOT NULL(-572)我的表:FP_PSStreamNoList中有:operatorID (NO NULL),prescriptNO(YES NULL),inPrescriptNO(YES NULL),你看看是怎么回事,开始表中只有operatorID中有数据:'1',其他为空!
那当然有错罗,operatorID (NO NULL)表示不能为空。 你是不是想在OperatorID 为‘1'的记录中,把字段prescriptNo从NUll改为'2000' 可以这么实现,用Update Update fp_psstreamNoList set rescriptNo = '2000' where OperatorID = '1'
Insert into fp_psstreamNoList(prescriptNo) values(2000)
你是不是想在OperatorID 为‘1'的记录中,把字段prescriptNo从NUll改为'2000'
可以这么实现,用Update
Update fp_psstreamNoList set rescriptNo = '2000' where OperatorID = '1'
Update是修改一条记录的数据,把其中一个字段从空变成有,当然也算修改
多帮忙呀!能告诉你的E_mail么?
我也很菜的,不过大家可以交流交流。
(Select Table1.Field2 - Table2.Field3
From Table2 where Table1.Table2No = Table2.ID )