sql - Datetime and Integer functions on Varchar fields -


we refactoring weird system within backend, values should stored number , date columns, propperly designed constraints, stored varchar (using ui validation). thing is, while new system our ones must start run so:

is possible manipulate varchar columns integer say lower or greater comparisons and, given dates stored same format dd/mm/yyyy possible treat varchar column date , use functions as: in between?

would work:

select column1, column2 table convert(datetime, datecolumn, 3) between @startdate , @enddate 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -