SQL LEARNERS
Tuesday, 1 November 2011
Alter table
IF
NOT
EXISTS(
SELECT
*
from
INFORMATION_SCHEMA
.
COLUMNS
WHERE
TABLE_NAME
=
'tblpatient'
and
COLUMN_NAME
=
'Externalid'
)
BEGIN
ALTER
TABLE
tblpatient
ADD
vinoth
NVARCHAR
(
9
)
NULL
END
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment