charuswapna Posted May 19, 2020 Share Posted May 19, 2020 Iam using DB browser for SQLite and it was working fine. I started using 'ALL' and 'ANY' operators and suddenly am getting error. "Execution finished with errors. Result: near "select": syntax error At line 5: Select cName from College S1" This is the error am getting. Please help. AM completely new to SQL and it is all confusing. Link to comment Share on other sites More sharing options...
dsonesuk Posted May 19, 2020 Share Posted May 19, 2020 Its probably the space in the column name, try backticks ( ` ) around column name. Link to comment Share on other sites More sharing options...
Makwana Prahlad Posted June 17, 2020 Share Posted June 17, 2020 Hello, @charuswapna Please try this query ,To Any and All keywords Syntax of Any: SELECT column-names FROM table-name WHERE column-name operator ANY (SELECT column-name FROM table-name WHERE condition) Syntax of All: SELECT column-names FROM table-name WHERE column-name operator ALL (SELECT column-name FROM table-name WHERE condition) I hope this query will be useful. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now