|
|
Question : % operation in sybase and MSSQL
|
|
|
|
hi, why % operation is not working in sybase? its working for MSSQL
for example
select 3%2 from table in sybase return 3 which is wrong ... the correct is 1...
its same for MSSQL also?
|
|
|
|
Answer : % operation in sybase and MSSQL
|
|
Set the Adaptive Server IQ database option PERCENT_AS_COMMENT OFF and use -- (double dash) as a comment delimiter for SQL/92 compatibility. The percent character is the default comment delimiter in IQ. Adaptive Server Enterprise treats the % as a modulo operator and does not support the IQ mod function.
http://manuals.sybase.com/onlinebooks/group-iq/iqg1250e/iqref/@Generic__BookTextView/79068;pt=77888/*
|
|
|