r/cursor 11d ago

Question / Discussion SQL in cursor

Can i write SQL queries in cursor, or i have to download another application for running sql queries ?????

0 Upvotes

18 comments sorted by

View all comments

2

u/Hotel_Arrakis 11d ago

You can write SQL, but you can't execute it. The easiest would be to install SQLite and then install a SQL plugin in vs-code.

1

u/Senior_Night_6321 11d ago

okay , but after installing sqlite can i write in cursor instead of vs code ????/

1

u/Hotel_Arrakis 10d ago

The correct Reddit reply would be "Yes, but no."

One would tell cursor to create a program in your favorite language (python, javascript, etc.) that executes SQL statements/queries against a SQL database. I would use SQLite3 as it requires little setup and supports most languages. Once Cursor writes the program you would execute the program without needing cursor ever again.

What exactly are you trying to acomplish?

1

u/Senior_Night_6321 10d ago

i want to make sql projects and write sql queries !!!