如何从Oracle Apex中的复选框组中插入多个值?
我有一个订单表(id_order,id_category)和类别表(id_category,Description)。 如何在Oracle Apex应用中插入订单,超过1类类别?
I have an order table(id_order,id_category) and category table(id_category,description).
How can I insert to an order, more than 1 type of category in oracle Apex app?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种选择是使用班车项目;它可以让您轻松地将所需类别从其从左到右移动。结果是一个半彩色的值列表。例如,如果您选择类别1、5和7,则结果为
1; 5; 7
so-,以便将它们正确地插入 中代码>表,您首先必须将它们拆分为行。如何?使用
apex_string.split
:所有行将共享相同的
order_id
,我假设(序列可能是其值的不错选择)。One option is to use a shuttle item; it'll let you easily move desired categories from its left to right side. The result is a semi-colon separated list of values. For example, if you chose categories 1, 5 and 7, result is
1;5;7
so - in order to insert them properly into theorder
table, you'll first have to split them to rows.How? Use
apex_string.split
:All rows would share the same
order_id
, I presume (a sequence might be a good choice for its value).