Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
jwe
Starting Member
13 Posts |
Posted - 2004-05-11 : 06:40:02
|
| I have a insert using max + 1. My problem is the table is empty and the column does not allow nulls so my isnull does not work. Any help greatly appreciated.Delete from QFMReportItem Where QFMReportsID=500GOInsert Into QFMReportItem ( QFMReportItemID, QFMReportsID, QFMDataItemID, InUse, SelectionType) Select (select max(isnull(QFMReportItemID,1)+1) from QFMReportItem), 500,1194,1,5 GO |
|
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2004-05-11 : 07:25:26
|
| (select max(isnull(QFMReportItemID,1))+1 from QFMReportItem), |
 |
|
|
|
|
|