HomeForum
Welcome, Guest

How to generate unique alphanumeric column value while inserting a row into the database
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to generate unique alphanumeric column value while inserting a row into the database

How to generate unique alphanumeric column value while inserting a row into the database 1 year, 2 months ago #2056

  • Bob
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Hello

I have just installed your ETL software and want to understand how to generate a unique value for a column every time a row is inserted to the table.
The value should be alphanumeric and my challenge is to make data writer to assign a unique value to the key column every time a new row insert is
done.

Please provide your suggestions.
Bob

Re: How to generate unique alphanumeric column value while inserting a row into the database 1 year, 2 months ago #2057

  • admin
  • NOW ONLINE
  • Moderator
  • Posts: 2182
  • Karma: 12
Hi,

This is bizarre and unusual requirement.
Anyway customer is always right…

Does it have to be alpha numeric?
And what is your database type?

Basically depending on the database type
There are several options:
You can use Advanced ETL processor to generate ID’s or you can use database to generate ID’s

Advanced ETL processor:

1.First of all you ca use MD5 for the primary key this one is definitely alpha numeric
2.Or you can use Sequence function to generate ID’s
3 Or you can use Sequence function together with HEX function

Database

1.For MS Sql Server you can unique identifier fields together with newuid() function
Or you can use identity fields
2.For Oracle you can use sequences.

Peter
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

We soon realised that Visual Importer ETL was designed by people who use it everyday.

Mark Brown,
MIS Consultant

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top