Vineel
Vineel

Reputation: 1788

Running SQL queries in VSCode

I installed Postgresql extension in VSCode Editor. When I try to run SQL queries, it says "Language code not supported or defined". How to fix this problem?enter image description here

Upvotes: 2

Views: 6162

Answers (1)

amirali
amirali

Reputation: 1964

The problem is, the code runner extension is trying to run the query, which does't support SQL queries. Try ctrl+shift+E to run the query (As available in mssql extension), or use pgsql extension, which is fixed clone of postgresql extension.

Upvotes: 2

Related Questions