我想在MySQL存儲函數中使用goto。 我該如何使用? 示例代碼: if (action = 'D') then
if (rowcount > 0) then
DELETE FROM datatable WHERE id = 2;
else
SET p=CONCAT('Can not delete',@b);
goto ret_label
我想從Oracle中的存儲函數返回的查詢。這個簡單的嘗試失敗: CREATE OR REPLACE TYPE GetObjectsForFolderObjectType IS OBJECT (
FOLDER_ID NUMBER(9), OBJECT_ID NUMBER(9)
);
CREATE OR REPLACE TYPE GetObjectsForFolderTableType
我有如下所示 type respond_field
IS
record
(
provider_id VARCHAR2(100),
provider_name VARCHAR2(100));
type respond_field_group
IS
TABLE OF respond_field INDEX BY BINARY_INTEGER
我在下面的存儲過程中寫了這個,並得到不正確的語句。 ALTER PROCEDURE dbo.[Counter]
@TableName VARCHAR(100)
AS
BEGIN
DECLARE @Counter INT
DECLARE @SQLQ VARCHAR(200)
SET NOCOUNT ON;
--