Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    [mysql] da quale versione le subquery ?

    ricerca disabilitata scusate e in mysql.com c'e' tutto tranne questo punto, faccio prima a chiedere a voi.

    Abituato con sqlite e mysql 4.1 non ho mai avuto problemi a fare subquery, per intenderci:

    SELECT name, (SELECT COUNT(s_id) FROM s_tabella WHERE p_id = id) AS childs FROM tabella WHERE id = 1

    che non ha problemi in SQLITE 2.X, 3.X come in MySQL 4.1.X o 5.X ...

    mentre ho un server che ha mysql 4.0 ed anche se sarebbe possibile risolvere con piu' di una query vorrei poterlo fare con una sola.

    Ecco la domanda

    mysql 4.0.X supporta le subquery ?
    se si, c'e' un modo per abilitare il supporto a tali subquery ?


    grazie
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

  2. #2
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    " A subquery is a SELECT statement inside another statement.

    Starting with MySQL 4.1, all subquery forms and operations that the SQL standard requires are supported, as well as a few features that are MySQL-specific. "
    http://dev.mysql.com/doc/mysql/en/subqueries.html


    think simple think ringo

  3. #3
    Originariamente inviato da marketto
    " A subquery is a SELECT statement inside another statement.

    Starting with MySQL 4.1, all subquery forms and operations that the SQL standard requires are supported, as well as a few features that are MySQL-specific. "
    http://dev.mysql.com/doc/mysql/en/subqueries.html


    ... letto tutto tranne quello



    grazie
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.