Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 query in SQL

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-01-05 : 08:07:03
manojkumar writes "sir

if we execute this command in SQL server...

PRINT ~3

it gives

-4 as answer...

i need how it gives so?

please help me in this regard...

regards

manoj"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-01-05 : 08:07:54
Look up "bitwise operators" in Books Online. The ~ is bitwise NOT.
Go to Top of Page
   

- Advertisement -