Advertisement
econz

Firebird - Gerar Chave Unica

Mar 19th, 2012
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.40 KB | None | 0 0
  1. SELECT UUID_TO_CHAR(gen_uuid()) FROM rdb$database
  2.  
  3. Gera chave unica no formato:
  4. 434683BA-9355-164A-9695-E68709ADA37E
  5. 668068DA-3744-4A4D-B5CF-694B18245AA5
  6. A8B459BF-C224-BA43-8BD0-CA10EA8DA6EE
  7. E9B0D0C7-E735-3E42-B7A0-1CE776D338AE
  8.  
  9. Referências para consulta:
  10. http://www.firebirdsql.org/refdocs/langrefupd25-intfunc-gen_uuid.html
  11. http://www.firebirdsql.org/refdocs/langrefupd25-intfunc-uuid_to_char.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement