Re: rawRows for UPDATE
Re: rawRows for UPDATE
- Subject: Re: rawRows for UPDATE
- From: Johann Werner <email@hidden>
- Date: Tue, 26 Jun 2012 14:23:59 +0200
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden