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 :: add column mysql 
Sql :: like in sql 
Sql :: stored procedure 
Sql :: SQL Add Multiple Columns in a Table 
Sql :: update or insert sql 
Sql :: insert sql 
Sql :: SELECT SQL LIKE 
Sql :: oracle insert multiple rows into same table 
Sql :: oracle select into and inner join 
Sql :: how to link java and mysql 
Sql :: SQL Equal to Operator 
Sql :: mysql login 
Sql :: non relational database 
Sql :: fuck docker mysql 
Sql :: psql list view rules 
Sql :: mysql isshow 
Sql :: rasa mysql connection custom actions example 
Sql :: oracle sql winter time change 
Sql :: sql int +1 
Sql :: Priviledges on table from other schema 
Sql :: list enums sql 
Sql :: prepared statement mysql java delete selected rows 
Sql :: mysql create database if not exists 
Sql :: Original Query 
Sql :: convert databse to achieve log mode oracle 
Sql :: python simple crud application using sqlite 
Sql :: VHDL Example Code of Record Type 
Sql :: enable mysql remote connection to two specific ip address 
Sql :: tsql select everything before a character 
Sql :: change redo log file size in mysql 5.6 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =