SQL Serverでは、varchar(32)(0x81f2cf442269e111b99c1cc1deedf59cのような16進文字列)をbigintに変換することはできますか?varchar(32)をbigintに変換する
私はこれを試してみました:
select convert(bigint, convert (varbinary(16), '0x81f2cf442269e111b99c1cc1deedf59c', 1))
が、私はそれが高いと低い値で動作することはないと確信しています。
なぜそんなことが必要ですか? –
この文字列をbigint列に格納する – malinois
これらの投稿はあなたに役立つかもしれないと思うhttp://blog.sqlauthority.com/2010/02/01/sql-server-question-how-to-convert-hex-to-decimal /とhttp://dpatrickcaldwell.blogspot.com/2009/05/converting-hexadecimal-or-binary-to.html –