首頁 > 資料庫 > mysql教程 > mysql数据库,workbench,报错,sql格式错误?

mysql数据库,workbench,报错,sql格式错误?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-06 09:44:36
原創
1201 人瀏覽過

mysqlworkbenchsql建数据库

建立数据库是卡住了
代码如下,最后三行的前面出来红色的×。
请问,什么问题?
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;

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
用tp5框架寫sql語句
來自於 1970-01-01 08:00:00
0
0
0
java - springboot新手學習
來自於 1970-01-01 08:00:00
0
0
0
spring - JavaWeb中 Service 層的事務問題
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板