phpbar.de logo

Mailinglisten-Archive

[php] Select in Zwo Tabellen

[php] Select in Zwo Tabellen

Stefan Rexroth rexroth_stefan_(at)_kas.fiscus.de
Fri, 24 Nov 2000 09:30:25 +0100


> Ich habe zwei Tabellen, die miteinander verknüpft sind über eine ID.
> T1: ID,Name,Anschrift,ID_2
> T2: ID_2, haarfarbe, augenfarbe,...
>
> Wie kann ich nun mit einer SQL-Abfrage in T1 ebenfalls nach den
> Einträge in T2 suchen (mit einem! select-befehl)?
> Bsp: ... where name="Lisa" and haarfarbe="Schwarz" and ....
SELECT t1.name FROM t1, t2 where t1.name='lisa' AND t2.haarfarbe = 'schwarz'

wie das mit dem quoting in Mysql ist .... ? Aber das sql sollte stimmen.

>
>
> Vielen Dank im voraus
>
> MfG
> --
> Tim
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_php-center.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
>


begin 666 winmail.dat
M>)\^(AH(`0:0" `$```````!``$``0>0!_(at)_`(````Y 0```````#H``$(_(at)_ <`
M& ```$E032Y-:6-R;W-O9G0_(at)_36%I;"Y.;W1E`#$(`0V ! `"`````_(at)_`"``$&
M_(at)_ ,`#_(at)_```- '"P`8``D`'_(at)_````4`)_(at)_$!`Y &`* '```K````"P`"``$````+
M`",```````,`)_(at)_``````"P`I```````+`"L```````,`+_(at)_```````P`V````
M```>`' ``0```!T```!;<&AP72!396QE8W0_(at)_:6X_(at)_6G=O(%1A8F5L;&5N````
M``(!<0`!````&P````' 5>_K)$(WLG7 =Q'4HH,`$%KSNG_(at)_``"!S\ `"`1T,
M`0```"(```!33510.E)%6%)/5$A?4U1%1D%.0$M!4RY&25-#55,N1$4````+
M``$.`````$ `!_(at)_X`M/"[\%7 `0(!"_(at)_X!````& ````````"F<9NA4"/1$:RH
M``# 7]??PH ```,`% X!````"P`?#_(at)_$````#``80C>BPS0,`!Q $`_(at)_``'_(at)_`(
M$ $```!E````24-(2$%"15I714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Y*BI!4 AP$. G`"Z!MR'0)P`A(38!("*0=".0
M1F_(at)_"0#$0+R]W2+ N8'!H<"UC"? .L'(N+_(at)_$`1G$=UD0?X5!(?% M,D$.L".0
M`, #$'3T;SI(\4!(^QW62$4+_(at)_!,"$#X08RXIH&DM:VYO'V ^X $`+TMB`X$O
MMS>A.[$"$"](\2?,?5%0`````P`0$ $````#`!$0`0```!X`0A !````'_(at)_``
M`#PS03%%,C$Y0BXX-3_(at)_S1$%#0T!C;VYN92YN970^`````P`H_(at)_ _(at)__(at)_!_(at)_``````
MP ```````$8`````4H4``.,5```>`"F "" &``````# ````````1_(at)_````!4
MA0```0````0````X+C4``P`J_(at)_ _(at)__(at)_!_(at)_``````P ```````$8``````84`````
M```+`"N "" &``````# ````````1_(at)_`````#A0````````L`+( (( 8`````
M`, ```````!&``````Z%`````````P`M_(at)_ _(at)__(at)_!_(at)_``````P ```````$8`````
M$(4````````#`"Z "" &``````# ````````1_(at)_`````1A0````````,`+X (
M( 8``````, ```````!&`````!B%````````'_(at)_`P_(at)_ _(at)__(at)_!_(at)_``````P ``````
M`$8`````-H4```$````!`````````!X`,8 (( 8``````, ```````!&````
M`#>%```!`````0`````````>`#* "" &``````# ````````1_(at)_`````XA0``
M`0````$`````````"P`Y_(at)_ _(at)__(at)_!_(at)_``````P ```````$8`````!H4````````+
M`%B "" &``````# ````````1_(at)_````""A0```0````L`6X +( 8``````, `
M``````!&``````"(````````"P!=_(at)_ L_(at)_!_(at)_``````P ```````$8`````!8_(at)_`
M```````"`?_(at)_/`0```! ```"F<9NA4"/1$:RH``# 7]??`_(at)_'Z#P$````0````
MIG&;H5 CT1&LJ ``P%_7WP(!^P\!````2P`````````XH;L0!>40&J&[" `K
M*E;"``!M<W!S="YD;&P``````$Y)5$'YO[_(at)_!`*H`-]EN````2#I<6C P-UQE
M;6%I;%QB,# N<'-T```#`/X/!0````,`#33]-P```_(at)_%_``$````Q````,# P
M,# P,#!!-C<Q.4)!,34P,C-$,3$Q04-!.# P,#!#,#5&1#=$1C(T04,S,C P
&`````&ZM
`
end



php::bar PHP Wiki   -   Listenarchive