8 lines
346 B
JavaScript
8 lines
346 B
JavaScript
const { Client } = require('pg');
|
|
const client = new Client('postgres://postgres:csh%402018@localhost:5432/ai_pharmacy');
|
|
client.connect().then(async () => {
|
|
const res = await client.query("SELECT brand_name, mrp, pack_size FROM products WHERE brand_name LIKE '%Novamox%'");
|
|
console.log(res.rows);
|
|
process.exit(0);
|
|
}).catch(console.error);
|