“Insert mysql” Réponses codées

INSERT MYSQL IN EXAMBLE

INSERT INTO Customers (CustomerName, City, PostalCode, Country)
VALUES ('Ali','Dubai','58063','UAE'), 
       ('Akshay','Kochi','695311','India'),
       ('Chan','Xining','S-896 23','China');
Funny Flatworm

Insert mysql

# multiple rows to insert
INSERT INTO tbl_name (a,b,c)
    VALUES(1,2,3), (4,5,6), (7,8,9);
Marc Tolkmitt

fk en insérer mysql

INSERT INTO joke(joke_text, joke_date, author_id)
VALUES (‘Humpty Dumpty had a great fall.’, ‘1899–03–13’, 
        (SELECT id FROM author WHERE author_name = ‘Famous Anthony’));
Giamblers

Insert mysql

INSERT INTO tbl_name (col1,col2) VALUES(15,col1*2);
Marc Tolkmitt

Réponses similaires à “Insert mysql”

Questions similaires à “Insert mysql”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code