I have s_no in my database's table. Which is increment automatically whenever new entry comes. But this is only int. I am using this as a ID of particular task. I want this in varchar. means id should be like "a45c725". How to achive this
newbie1234
-2
Newbie Poster
Recommended Answers
Jump to PostWhat is the purpose of what you want ?
Jump to PostYou may want to add an additional column for this, and create an insert trigger to automatically generate that id (based on your specifications).
All 6 Replies
Szabi Zsoldos
26
Learner and helper guy
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
newbie1234
-2
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
newbie1234
-2
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.