I want to write similar to “click for more”.
I cant remember this tech. I could via sql query.
I want to select data’s first 30 character.
How?
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.
Every SQL flavor I’ve worked with has a substring function:
Oracle, MySQL, PostgreSQL, SQLite:
SQL Server, MySQL:
Alternatively, you can make use of the
LEFTfunction, which is supported by some of these DBs:MySQL, SQL Server:
And of course you can use a column alias, like: