mysql - SQL:HOW TO TAKE SUBSTRING FOR QUERY -


I have a date

1012009

I have to finally take this date

How to get the last four digits in the column

  2009   

I need this

Another example:

1032009

How to take the last four values.

simple string function:

  SELECT RIGHT (INC_DATE, 4);    

Comments

Popular posts from this blog

php - How to filter values fetched from database on the basic of comma included? -

excel vba - How to delete Solver(SOLVER.XLAM) code -

c# - Add Image in a stackpanel based on textbox input -