• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rawRows for UPDATE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >rawRows for UPDATE (From: Ron X <email@hidden>)
 >Re: rawRows for UPDATE (From: Johann Werner <email@hidden>)
 >Re: rawRows for UPDATE (From: Ron X <email@hidden>)

  • Prev by Date: Re: rawRows for UPDATE
  • Next by Date: fetchLimit don't affect SQL fetching limit?
  • Previous by thread: Re: rawRows for UPDATE
  • Next by thread: Re: rawRows for UPDATE
  • Index(es):
    • Date
    • Thread