Make a query for get partial text
I need to make a query (mysql database) for get the content of a specific texarea field. For do that I use the follow query:
Using this query allow me to get the full content of the texarea for each of my users but my goal was to get only the first 200 character and not the full text. Somebody told me is possible to do something using the SQL functions such as SUBSTR but I don't know how to include this function in my query.
SELECT `mytextareacolumn` FROM `my_table` WHERE `user_id` = [user_id]
I'm not a coder just a poor newbie.
Anybody can suggest me something please?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)