当我在and事务中有两个INSERT
SQL 语句(见下文)时,则不会返回任何内容,但如果我取出并返回插入的记录。
我怎样才能在事务中工作?begin;
commit;
RETURNING *
begin;
commit;
RETURNING *
RETURNING *
BEGIN;
INSERT INTO gis_field_configuration
(level_unique_name, level_name_caption, use_for_charts, use_as_displayby,
displayby_label, data_type, level_help_text)
VALUES (
'[john].[john]',
'john',
'false',
'false',
'',
'text',
'help text'
);
INSERT INTO gis_field_configuration_bycube
(cube, level_unique_name)
VALUES (
'Instruments',
'[john].[john]'
) RETURNING *;
COMMIT;