建立数据库是卡住了
代码如下,最后三行的前面出来红色的×。
请问,什么问题?
begin
if new.item_type_id<> old.item_type_id
or new.measure_type_id <> old.measure_type_id
or new.per_quantity<> old.per_quantity
or new.total_weight<> old.total_weight
or new.unit_price<> old.unit_price
or new.enabled_flag <> old.enabled_flag then
insert into mtl_item_price_his
set item_id =old.item_id
,change_date =now()
,unit_price=old.unit_price
,item_type_id=old.item_type_id
,measure_type_id =old.measure_type_id
,per_quantity=old.per_quantity
,total_weight=old.total_weight
,description =old.description
,creation_date =now()
,created_by=old.last_updated_by;
END if;
end;
mysql数据库,workbench,报错,sql格式错误?
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
0条回答 默认 最新
悬赏问题
- ¥20 matlab yalmip kkt 双层优化问题
- ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
- ¥88 实在没有想法,需要个思路
- ¥15 MATLAB报错输入参数太多
- ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
- ¥15 有赏,i卡绘世画不出
- ¥15 如何用stata画出文献中常见的安慰剂检验图
- ¥15 c语言链表结构体数据插入
- ¥40 使用MATLAB解答线性代数问题
- ¥15 COCOS的问题COCOS的问题