sql存储过程怎么转为oracle存储过程?
setANSI_NULLSONsetQUOTED_IDENTIFIERONgoALTERPROCEDURE[dbo].[cc_begin_scrapUC](@idvarc...
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[cc_begin_scrapUC]
(
@id varchar(64),
@item varchar(128),
@qty decimal(18, 8),
@measure_code varchar(64),
@warehouse varchar(64),
@code varchar(64),
@bom_ver varchar(64),
@transaction_date datetime,
@update_user_id varchar(64),
@remark varchar(256),
@company varchar(64)
)
AS
SET NOCOUNT OFF;
UPDATE [cc_begin_scrap] SET [item] = @item, [qty] = @qty, [measure_code] = @measure_code, [warehouse] = @warehouse, [code] = @code, [bom_ver] = @bom_ver, [transaction_date] = @transaction_date, [update_user_id] = @update_user_id, [update_date] = getdate(), [remark] = @remark, [company] = @company
WHERE (id = @id)
SELECT id, item, qty, measure_code, warehouse, code, bom_ver, transaction_date, create_user_id, create_date, update_user_id, update_date, remark, company FROM cc_begin_scrap WHERE (id = @id) 展开
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[cc_begin_scrapUC]
(
@id varchar(64),
@item varchar(128),
@qty decimal(18, 8),
@measure_code varchar(64),
@warehouse varchar(64),
@code varchar(64),
@bom_ver varchar(64),
@transaction_date datetime,
@update_user_id varchar(64),
@remark varchar(256),
@company varchar(64)
)
AS
SET NOCOUNT OFF;
UPDATE [cc_begin_scrap] SET [item] = @item, [qty] = @qty, [measure_code] = @measure_code, [warehouse] = @warehouse, [code] = @code, [bom_ver] = @bom_ver, [transaction_date] = @transaction_date, [update_user_id] = @update_user_id, [update_date] = getdate(), [remark] = @remark, [company] = @company
WHERE (id = @id)
SELECT id, item, qty, measure_code, warehouse, code, bom_ver, transaction_date, create_user_id, create_date, update_user_id, update_date, remark, company FROM cc_begin_scrap WHERE (id = @id) 展开
1个回答
光点科技
2023-08-15 广告
2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询