2
Reply

How to get integer and string records from the existing table in sql server?

Purushottam Rathore

Purushottam Rathore

Aug 07, 2012
1.9k
0

    select * from // it fetch all record of table and also diff datatype aswell

    Umesh Maurya
    February 03, 2016
    0

    Write the following query to get only integer records.
    SELECT * FROM TableName WHERE ISNUMERIC(ColumnName) = 1
    Write the following query to get non integer records.
    SELECT * FROM TableName WHERE ISNUMERIC(ColumnName) <> 1

    Purushottam Rathore
    August 07, 2012
    0