PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > macromedia.dyna.html > Update Record with two primary keys
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Update Record with two primary keys

Réponse
 
LinkBack Outils de la discussion
Vieux 28/09/2008, 17h14   #1
Jupiter Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Update Record with two primary keys

I'm trying to use the "Update Record" server behavior on Dreamweaver 8 but the
dialog asks me to identify a unique column. The table I'm trying to update
uses two columns together as the primary key. The dialog box won't let me
select two columns. Is there any way around this restriction?

  Réponse avec citation
Vieux 28/09/2008, 23h33   #2
Philo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Update Record with two primary keys

Jupiter Man wrote:

> I'm trying to use the "Update Record" server behavior on Dreamweaver
> 8 but the dialog asks me to identify a unique column. The table I'm
> trying to update uses two columns together as the primary key. The
> dialog box won't let me select two columns. Is there any way around
> this restriction?



Manually change it after runing the behavior.

  Réponse avec citation
Vieux 29/09/2008, 00h35   #3
Jupiter Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Update Record with two primary keys

I don't know how to do this manually. Is it possible to be more specific?
  Réponse avec citation
Vieux 30/09/2008, 14h39   #4
Philo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Update Record with two primary keys

Jupiter Man wrote:

> I don't know how to do this manually. Is it possible to be more
> specific?



This means you will need to know sql and change the code the behavior
creates. For instanes the where clause might now say

where tb11.firstkeyfld = tbl2.afield2

You really want

where tb11.firstkeyfld = tbl2.afield2 and tbl1.secondkeyfld =
tbl2.anotherfld



  Réponse avec citation
Vieux 01/10/2008, 03h35   #5
Jupiter Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Update Record with two primary keys

Thanks for sticking with me on this.

I couldn't find any "where clause" in my page's source code so I decided to do
a workaround and add a unique key column to the database table. This seems to
work fine.

Thanks again.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h25.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09845 seconds with 13 queries