-
-
Notifications
You must be signed in to change notification settings - Fork 2
INSERT
Oxford Harrison edited this page Nov 15, 2024
·
12 revisions
The INSERT
statement.
See APIS ➞
client.query()
,table.insert()
// (a): SQL syntax
const result = await client.query(
`INSERT INTO public.users
(name, email)
VALUES ('Jane', 'jane@example.com')`
);
// (b): Object-based syntax
const result = await client.database('public').table('users').insert(
{ name: 'Jane', email: 'jane@example.com' }
);
See also ➞
Magic Paths