mysql 儲存過程建立總是出錯

2021-12-28 21:56:33 字數 806 閱讀 5925

1樓:匿名使用者

delimiter $$

drop procedure if exists productpricing $$

create procedure productpricing()begin

select danhao from s_jc_tbhead;

end;

$$delimiter ;

2樓:清影星河

在phpmyadmin中,點選「sql」

在[ 語句定界符 ] 在此再次顯示此查詢

中,填;;(兩個;)

然後,再把你的句子改一下子:

drop procedure if exists productpricing;;

create procedure productpricing()begin

select danhao from s_jc_tbhead;

end;;

一定要注意,上面的兩個;;,一個;

相信我,一定能成功。

使用n**icat for mysql工具建立儲存過程,引數老是告訴我錯誤,請大神幫看一下,謝謝。 50

3樓:冀菀

表中插入列應該用這個格式的sql:

alter table 【表名】 add column 【列名】 欄位型別 ;

4樓:abul阿寶

可以把整個儲存過程貼出來,目測是小細節.

如果你是用下面這種方式來建立,傳入引數是寫在那個框裡的- -||

關於MySQL儲存過程多個結果集如何合併

如果欄位相同,可以直接用 union all 合併select a,b,c from tablea where 條件a union all select a,b,c from tablea where 條件b union all 相關修改邏輯 與語句 查詢使用者id,訂單id select user...

用SQL語句建立儲存過程,使用SQL語句建立儲存過程如題 謝謝了

create proc edure procedure name number varying default output n with forreplication as begin t sql語句 end 可以參考以上語法!mysql教程4 mysql8運算子 函式 儲存過程及新增資料型別 1...

SQL裡中儲存過程和觸發器,如何建立

儲存過程可以直接用sql語句建立,觸發器可以在表修改中建立create procedure nameas 1 儲存過程 create procedure for select 你想用的觸發器名字 delare name char 8 output 用於輸出的 age intoutput 用於輸出 p...