Sybase Convert between Number and Varchar

Categories: Database December 22nd, 2014 22:37

SELECT (CONVERT(NUMERIC(20, 0), '100') + 1)

>> 101

 

 

SELECT (CONVERT(VARCHAR(3), 100) + 'ABC')

>> 100ABC

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.