我有table
Name Null? Type
-------------- -------- ------------
PONO NOT NULL NUMBER(5)
REQUESTOR VARCHAR2(50)
COSTCENTER VARCHAR2(5)
ADDRESSSTREET VARCHAR2(50)
ADDRESSCITY VARCHAR2(50)
ADDRESSSTATE VARCHAR2(2)
ADDRESSZIP VARCHAR2(10)
ADDRESSCOUNTRY VARCHAR2(50)
AD_INFO VARCHAR2(50)
以及此类插入
INSERT INTO purchaseorder
SELECT * FROM json_table(L_PO FORMAT JSON, '$'
COLUMNS (
PONo Number PATH '$.PONumber',
Requestor VARCHAR2 PATH '$.Requestor',
CostCenter VARCHAR2 PATH '$.CostCenter',
AddressStreet VARCHAR2 PATH '$.Address.street',
AddressCity VARCHAR2 PATH '$.Address.city',
AddressState VARCHAR2 PATH '$.Address.state',
AddressZip VARCHAR2 PATH '$.Address.zipCode',
AddressCountry VARCHAR2 PATH '$.Address.country'));
我想从添加广告信息 select source from source_table where x=159
一次手术能做到这一点吗?
1条答案
按热度按时间7vux5j2d1#
如果您的表源\u表包含l\u po(json文件),那么您可以使用: