How to write this query in Sqlite3?
select distinct LEFT(pav, LOCATE(';',pav)) from table;
I have many rows with pav = “somename;34h3hhasheshashes43jh43jh4”
I can’t find function LOCATE() in the Sqlite3
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a link to SQLite functions. They don’t have an equivalent of MySQL’s Locate.
You should just parse the result in the program you’re receiving the data in.