You shouldn't work directly with pk/fk use objects! Finally that's all EOF is about, saving you to fight with SQL ;-)
NSArray<Song> songs = Song.fetchSongs(ec, Song.ARTIST.is(concreteArtist), null); songs.takeValueForKey(anotherArtist, Song.ARTIST); Am 26.06.2012 um 12:57 schrieb Ron X: > how can I update _rowid by EOF? :-) > > 2012/6/26 Johann Werner > Have a look at the ERXEOAccessUtilities class. There you have plenty of > helper methods if you really want to send raw SQL to the database. Why don't > you use EOF? > > > Am 26.06.2012 um 12:15 schrieb Ron X: > > > hi4all > > can I use this method for update? > > > > i tried > > EOUtilities.rawRowsForSQL(editingContext, "db_test", "UPDATE song " + > > "SET artistId = " + concreteCurrentArtistID + " > > WHERE " + "artistId = " + concreteValidArtistID, null); > > > > but nothing changes... > > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
