Culd you please let me know any function that allows me to insert a new record that one of its fields must be something like the New records ID +(a Variable)
I tried this but doesnt work:
INSERT INTO pictures
(bandid, production, picfile, piccomments, pictype, username, dateadded)
VALUES
(1, 7, 4,(SELECT MAX(picid) + 1 FROM pictures), 'covers','kthulu', getdate())
In other words i need to get the new id in another column in the first place plus some text which i can easily add if i had the id that i want.
I hope you understand my question.
regards
I tried this but doesnt work:
INSERT INTO pictures
(bandid, production, picfile, piccomments, pictype, username, dateadded)
VALUES
(1, 7, 4,(SELECT MAX(picid) + 1 FROM pictures), 'covers','kthulu', getdate())
In other words i need to get the new id in another column in the first place plus some text which i can easily add if i had the id that i want.
I hope you understand my question.
regards