1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-07 19:06:32 +03:00

Add UNION, GROUP, DISTINCT to INSERT.

This commit is contained in:
Bruce Momjian
1998-01-11 03:41:57 +00:00
parent d70df16a76
commit 600c958a30
4 changed files with 46 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parsenodes.h,v 1.42 1998/01/10 04:30:11 momjian Exp $
* $Id: parsenodes.h,v 1.43 1998/01/11 03:41:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -574,10 +574,15 @@ typedef struct InsertStmt
{
NodeTag type;
char *relname; /* relation to insert into */
char *unique; /* NULL, '*', or unique attribute name */
List *cols; /* names of the columns */
List *targetList; /* the target list (of ResTarget) */
List *fromClause; /* the from clause */
Node *whereClause; /* qualifications */
List *groupClause; /* group by clause */
Node *havingClause; /* having conditional-expression */
List *unionClause; /* union subselect parameters */
bool unionall; /* union without unique sort */
} InsertStmt;
/* ----------------------