12 lines
217 B
MySQL
12 lines
217 B
MySQL
|
-- name: CreatePurchaseOrderDetail :one
|
||
|
INSERT INTO purchase_order_detail (
|
||
|
purchase_order_id,
|
||
|
merchant_id,
|
||
|
product_id,
|
||
|
quantity,
|
||
|
sub_total,
|
||
|
product_price
|
||
|
) VALUES (
|
||
|
$1, $2, $3, $4, $5, $6
|
||
|
)
|
||
|
RETURNING *;
|