TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anil Kumar
712
1.3k
134.2k
How to use two identity column in one table in sql server
Jan 29 2016 2:38 AM
How to use two identity or auto increment column in one table in sql server??
i am creating a table for Hospital patientOpd
CREATE TABLE [dbo].[PatientOpd](
[Id] [int] NOT NULL,
[OpdNo] [int] IDENTITY(1,1) NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[Name] [nvarchar](50) NULL,
)
i want to that id and OpdNo should be auto increment value
as Opd no will be reset daily and
Id will be increment continuously...
Reply
Answers (
1
)
Using Comand (%LIKE%) to check data in the column
What is Injection in Sql or Sql Injection