Using hash to create unique ID

前端 未结 0 943
灰色年华
灰色年华 2020-12-18 15:40

I have a table with columns (C1, C2, C3, number) and tried following command

SELECT
  CAST(HASHBYTES(\'MD2\' CONCAT_WS(\'|\', C1, C2)) AS int) AS \'ID\'
 ,C1
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题