Obtain GUID from Oracle

Source: Internet
Author: User
Tags mssqlserver

Oracle obtains GUID. Oracle does not want MsSqlServer to have the NEWID () method, but we can use the following method to obtain the Guid SQL statement: SELECT sys_guid () from T_Table, the number of guids queried by the SQL statement = the number of data records in the Table. Where can I obtain the first few pieces of data? top can be used in MsSqlServer, but not in Oracle. SQL statement: SELECT sys_guid () from T_USERS where rownum <2 to obtain the first entry of the Guid. Note 1: When the guid obtained by making asp.net is 'hexadecimal convertible '(I have confirmed 16-> 10 ), so in asp.net, if you want to query through guid, You need to convert each number in Oracle Asp.net to two hexadecimal numbers in Oracle (for example, 241 represents F1)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.