问题描述
我需要更新oracle 11g db表,例如
G_X_Table => groupid(fk),itemid(fk)
Group_Table => groupid(PK),groupName
Item_Table => itemid(PK),itemName
我需要在更新(插入,删除)时编写存储过程。我必须将一个groupId和ItemId集合传递给过程,其中insert带有groupid和collection的G_X_Table,那些需要删除的项集合中没有。请帮我写程序。
我需要通过C#与oledb连接调用此程序,请有人帮助我。我是oracle的新手。通过c#连接。
我的想法:删除表单G_X_Table其中groupid =输入groupid并插入带有新值的G_X_Table。但我很困惑我需要在程序中接受项目集合的类型以及我需要传递的oledb类型作为输入参数。
在此先感谢..
I need to update oracle 11g db tables like
G_X_Table => groupid(fk),itemid(fk)
Group_Table => groupid(PK),groupName
Item_Table => itemid(PK),itemName
I need to write a stored procedure while updating(insert,delete).I have to pass one groupId and ItemId collection to procedure where insert G_X_Table with groupid and collection,those are not there in item collection those need to delete. Please help me to write procedure.
I need to call this Procedure through C# with oledb connection please anybody help me. I am very new with oracle..connection through c#.
my idea: delete form G_X_Table where groupid=input groupid and insert G_X_Table with new values. But I am confused what the type i need to accept item collection in procedure and what oledb type i need to pass as input parameter.
Thanks in advance..
推荐答案
这篇关于oracle 11g proc用于接受集合/ int of int throw c#oledb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!