19. december 2001 - 15:10Der er
11 kommentarer og 1 løsning
Nested SQL opdatering !
Jeg ville meget gerne opdatere min tabel med en simpel forspørgelse, så som:
UPDATE Bookmarks SET Bookmarks.Bookmark_accessed = (SELECT bookmark_accessed FROM bookmarks WHERE bookmark_id = 1)+1, Bookmarks.Bookmark_lastaccess = Now() WHERE Bookmarks.Bookmark_id = 1
Men får en rigtig god fejl der siger: \"Operation must use an updateable query.\".... Dvs. der er ingen måde hvorpå jeg kan gøre dette eller skal man bare snyde lidt ?!?!?
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
Have you made the query in the query builder? You can select th equery type form a little mney button in the menu. Then you can see if you can get this query to work there!
You dont need to change you rSQL until you know it is working. Copy and paste your SQL into the Access query designer. Then once you can see its working there you replace your original SQL with the new.
I\'m using the database for an intranet - So I need an SQL statment that in one and single line can update the bookmark table so that [accessed] is one plus last value....
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.