建立数据库是卡住了
代码如下,最后三行的前面出来红色的×。
请问,什么问题?
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条回答
悬赏问题
- ¥15 fluent的在模拟压强时使用希望得到一些建议
- ¥15 STM32驱动继电器
- ¥15 Windows server update services
- ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
- ¥15 模糊pid与pid仿真结果几乎一样
- ¥15 java的GUI的运用
- ¥15 Web.config连不上数据库
- ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
- ¥15 怎么配置广告联盟瀑布流
- ¥15 Rstudio 保存代码闪退