系统中应用的ID--GUID

MS SQL Server中,有NEWID函数,返回的数据类型为UniqueIdentifier,长度为36。

Oracle中,有SYS_GUID函数,返回数据类型为char,长度为32。

  
protected String getGUIDSqlString() {
        return "select rawtohex(sys_guid()) from dual";
    }

至于怎么对这新产生的ID进行排序,还没搞清楚。

你可能感兴趣的:(oracle,sql,SQL Server)