2017-10-19 23:57:03 -04:00
|
|
|
DELETE FROM tps.map_rm;
|
2017-10-19 17:39:29 -04:00
|
|
|
INSERT INTO
|
|
|
|
tps.map_rm
|
|
|
|
SELECT *
|
|
|
|
FROM
|
|
|
|
(VALUES
|
2017-10-19 23:57:03 -04:00
|
|
|
('DCARD', 'First 20',
|
2017-10-19 17:39:29 -04:00
|
|
|
$j$
|
|
|
|
{
|
|
|
|
"defn": [
|
|
|
|
{
|
|
|
|
"key": "{Description}",
|
2017-10-19 23:57:03 -04:00
|
|
|
"field": "f20",
|
|
|
|
"regex": ".{1,20}"
|
2017-10-19 17:39:29 -04:00
|
|
|
,"retain":"y"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"where": [
|
|
|
|
{
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
$j$::jsonb
|
|
|
|
, 2)
|
2017-10-19 23:57:03 -04:00
|
|
|
,('HUNT', 'First 20',
|
2017-10-19 17:39:29 -04:00
|
|
|
$j$
|
|
|
|
{
|
|
|
|
"defn": [
|
|
|
|
{
|
|
|
|
"key": "{Description}",
|
2017-10-19 23:57:03 -04:00
|
|
|
"field": "f20",
|
|
|
|
"regex": ".{1,20}"
|
2017-10-19 17:39:29 -04:00
|
|
|
,"retain":"y"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"where": [
|
|
|
|
{
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
$j$::jsonb
|
|
|
|
, 1)
|
|
|
|
) x
|