Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql multiple insert postgres

INSERT INTO User (name, surname, "roomId") // roomId is with quetes("") because it is case sensitive in this example
  VALUES 
    ('Joe', 'Travolta', 1),
    ('Jim', 'Carrey', 2),
    ('Shakira', 'whenever', 3); // remember about semicolon(;) at the end
Comment

postgresql insert multiple rows


        
            
        
     INSERT INTO table_name (column_list)
VALUES
    (value_list_1),
    (value_list_2),
    ...
    (value_list_n);
Comment

postgresql multiple insert with subquery

INSERT INTO table1 (col1, col2) 
SELECT col1, col2 
  FROM othertable
Comment

PREVIOUS NEXT
Code Example
Sql :: 0 
Sql :: DIFFERENCE BETWEEN 2 COLN IN SQL 
Sql :: reindex mssql table 
Sql :: how to completely uninstall sql server 
Sql :: acual month sql 
Sql :: compound trigger oracle 
Sql :: sql limit clause 
Sql :: identify rows with 2 same column value and delete duplicate mysql 
Sql :: how to get last element sql 
Sql :: difference between left outer join and left join in sql 
Sql :: postgresql select top 1 from each group 
Sql :: mysql not 
Sql :: list all functions and procedures in postgres query 
Sql :: insert into from 
Sql :: oracle swap partition 
Sql :: ms sql check if column is nullable 
Sql :: replace function in sql 
Sql :: wp_query raw sql 
Sql :: data types mysql vs postgresql 
Sql :: where name ends in SQL 
Sql :: how to find 2nd highest salary in mysql 
Sql :: can i use alias in where clause 
Sql :: mysql dump database tables only 
Sql :: join sql 
Sql :: mysql insert multiple rows based on select 
Sql :: how to use sqlcommand 
Sql :: sql example 
Sql :: mariadb errno 121 
Sql :: sql server set complex constraints 
Sql :: how to get one year old query from plan cache 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =