+ 1

How do you use sql in javascript?

How are you supposed to use SQL in javascript? I know it can be done, but how?

18th Nov 2018, 1:17 PM
Elijah D
Elijah D - avatar
6 Réponses
0
Try rest api, and ajax. It'll fulfil your needs
19th Nov 2018, 4:58 AM
Taste
Taste - avatar
+ 2
Taste I am pretty sute that it can be done. stackoverflow.com/questions/45302570/sql-transactions-in-javascript I just don't know how to do it all.
18th Nov 2018, 6:36 PM
Elijah D
Elijah D - avatar
+ 1
Not in client-side, but in serverside like nodejs yes its possible by installing the reqired package for the dbms
18th Nov 2018, 2:05 PM
Taste
Taste - avatar
+ 1
Yes it can be, but are you sure that you'll store your username and password to access the database at client side ? its better to wrap db stuff at server side and provide an interface so client side can use it.
18th Nov 2018, 6:38 PM
Taste
Taste - avatar
+ 1
Thanks Taste I am trying to find something that will be able to read a SQL table without reloading the page.
18th Nov 2018, 9:29 PM
Elijah D
Elijah D - avatar
+ 1
Thanks a lot Taste 👍👍☺☺😁
19th Nov 2018, 2:14 PM
Elijah D
Elijah D - avatar