PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Previous Row Comparison
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Previous Row Comparison

Réponse
 
LinkBack Outils de la discussion
Vieux 20/10/2007, 07h37   #1
Legend
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Previous Row Comparison

I have a table in this format:

Column A | Column B
1 | 2
1 | 3
1 | 4
2 | 5
......
......

What I want to do is something like this:

If in Column A there is a change in the number i.e. from the above
table there were many 1s which transitioned into a 2. I want to record
this change. I want to extract these two rows into another table. How
can I make this possible?

  Réponse avec citation
Vieux 20/10/2007, 16h03   #2
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Previous Row Comparison

On Sat, 20 Oct 2007 05:37:38 -0000, Legend
<rahul986@gmail.com> wrote:

>I have a table in this format:
>
>Column A | Column B
>1 | 2
>1 | 3
>1 | 4
>2 | 5
>.....
>.....
>
>What I want to do is something like this:
>
>If in Column A there is a change in the number i.e. from the above
>table there were many 1s which transitioned into a 2. I want to record
>this change. I want to extract these two rows into another table. How
>can I make this possible?


With a trigger.
--
( Kees
)
c[_] Famous last words - Don't worry, I can handle it. (#441)
  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 01h22.


Édité par : vBulletin® version 3.7.3
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,07513 seconds with 10 queries