Search
 
SCRIPT & CODE EXAMPLE
 

SQL

insert or ignore postgres

INSERT INTO customers (NAME, email)
VALUES('Microsoft','hotline@microsoft.com') 
ON CONFLICT ON CONSTRAINT customers_name_key 
DO NOTHING;
Code language: SQL (Structured Query Language) (sql)
Comment

insert or ignore postgres

INSERT INTO customers (name, email)
VALUES('Microsoft','hotline@microsoft.com') 
ON CONFLICT (name) 
DO NOTHING;
Code language: SQL (Structured Query Language) (sql)
Comment

insert or ignore postgres

INSERT INTO 
    customers (name, email)
VALUES 
    ('IBM', 'contact@ibm.com'),
    ('Microsoft', 'contact@microsoft.com'),
    ('Intel', 'contact@intel.com');
Code language: SQL (Structured Query Language) (sql)
Comment

PREVIOUS NEXT
Code Example
Sql :: sql count more than 1 
Sql :: oracle chain rules 
Sql :: raiserror with nowait 
Sql :: generate random & unique mysql string 
Sql :: how to define a save method in ruby for sqlite3 databases 
Sql :: Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details. 
Sql :: mssql procedure 
Sql :: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1 
Sql :: sql inner join 
Sql :: mysql fetch all data 
Sql :: show function mysql 
Sql :: set mysql password 
Sql :: case insensitive sql 
Sql :: how to create a table based on another table in mysql 
Sql :: sql to linq 
Sql :: sql vs nosql or mysql vs mongodb 
Sql :: power bi union columns 
Sql :: change schema of all tables postgres 
Sql :: postgresql port 5432 not open 
Sql :: cast in sql 
Sql :: full outer join postgres 
Sql :: case condition in mongodb 
Sql :: list mysql tables and views 
Sql :: how to select multiple columns from different tables in mysql 
Sql :: convert minutes to hours sql 
Sql :: oracle step procedure 
Sql :: Rows, INSERT INTO, Returning 
Sql :: how to do an average on a count sql 
Sql :: sql server obtener nombre sin espacios en blanco 
Sql :: select multiple tables mysql 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =