Results 1 to 3 of 3

Thread: inserimento manuale record

  1. #1
    spoonman is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default inserimento manuale record

    Ciao a tutti, dovendo agganciare a mano (con una query sql) dei contatti a delle ditte dal db ho visto che bisogna aggiungere dei record alla tabella accounts_contacts. La mia domanda è: come faccio a generare l'id ? Sapete se viene usata qualche funzione particolare di mysql ?

    Grazie

  2. #2
    spoonman is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default Re: inserimento manuale record

    Ho visto questo script in php:
    http://www.openapp.org/open-source-c...n-the-database

    forse quello che cerco viene fatto nella funzione create_guid() che ne dite ?

  3. #3
    emaggi is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Italia, near Verona
    Posts
    103

    Default Re: inserimento manuale record

    Soluzione n.1: utilizza le funzioni SOAP, che fanno tutto in automatico, e ti eviti qualsiasi problema di intergità etc
    Soluzione n.2: se proprio vuoi buttare dentro i dati via db crea l'id tu, con un progressivo numerico oppure con cmbinazioni di stringhe o come vuoi, stando attento ad evitare duplicati
    Ing. Enrico Maggi
    Opensymbol Srl
    tel +39.0444.189826
    skype: enricomaggi
    enrico.maggi@opensymbol.it
    www.opensymbol.it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 2008-06-03, 05:40 AM
  2. ListView 'Contact' field is linked to wrong record
    By leenwebb in forum Developer Help
    Replies: 4
    Last Post: 2007-02-19, 05:41 PM
  3. Replies: 2
    Last Post: 2007-01-29, 04:11 PM
  4. Replies: 7
    Last Post: 2005-09-13, 11:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •