> 3. Ezután az eredmény:
> mysql> select length(concat(o1,o2,o3,o4,o5)) \
>        - length(replace(concat(o1,o2,o3,o4,o5),'1','')) \
>        as 1_elofordulas from jegyek;

Talán jelen esetben
mysql> select  5 - length(replace(concat(o1,o2,o3,o4,o5),'1','')) \
       as 1_elofordulas from jegyek;

SzTZs
_______________________________________________
Techinfo mailing list
[email protected]
Fel- és leiratkozás: http://lista.sulinet.hu/mailman/listinfo/techinfo
Illemtan: http://www.szag.hu/illemtan.html
Ügyfélszolgálat FAQ: http://sulinet.niif.hu/
  • [no subject] Dorozsmai Károly
    • Re: CeLkA
    • Re: Válas Péter
      • Re: Válas Péter
    • Re: Kelemen Mihály
      • Re: Dorozsmai Károly
        • Re: Ferenc Bajan
          • Re: Szalayné Tahy Zsuzsa
            • Re: Ferenc Bajan

válasz