Archive

Posts Tagged ‘LENGTH’

How to Select Distinct And Get the Certain Characters From a Field in MySQL Database

November 27th, 2009 Masino Sinaga No comments

Today I faced an interesting situation while getting the certain characters from a field and wanted to display them by using SELECT DISTINCT statement in MySQL database. Suppose we had thousand records in a table and we wanted to get the certain characters from the first until the certain position counted 6 characters from the right of all particular characters, and display them by using the SELECT DISTINCT statement. So, what would you do? Well, here is the solution I made in MySQL database. Read more…

  • Share/Bookmark