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

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

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -