
17.10.2013, 23:37
|
|
Guest
Сообщений: n/a
Провел на форуме: 15642
Репутация:
6
|
|
Сообщение от qaz
qaz said:
при запросе с concat() пишет, Subquery returns more than 1 row нужен другой вариант
Winstrool все правильно сказал!
PHP код:
PHP: [COLOR="#000000"][COLOR="#0000BB"]mysql[/COLOR][COLOR="#007700"]>[/COLOR][COLOR="#0000BB"]select concat[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]table_name[/COLOR][COLOR="#007700"])[/COLOR][COLOR="#0000BB"]from information_schema[/COLOR][COLOR="#007700"].[/COLOR][COLOR="#0000BB"]tables limit 6[/COLOR][COLOR="#007700"];[/COLOR][/COLOR]
PHP код:
PHP: [COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]+---------------------------------------+
|[/COLOR][COLOR="#0000BB"]concat[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]table_name[/COLOR][COLOR="#007700"]) |
+---------------------------------------+
|[/COLOR][COLOR="#0000BB"]CHARACTER_SETS[/COLOR][COLOR="#007700"]|
|[/COLOR][COLOR="#0000BB"]COLLATIONS[/COLOR][COLOR="#007700"]|
|[/COLOR][COLOR="#0000BB"]COLLATION_CHARACTER_SET_APPLICABILITY[/COLOR][COLOR="#007700"]|
|[/COLOR][COLOR="#0000BB"]COLUMNS[/COLOR][COLOR="#007700"]|
|[/COLOR][COLOR="#0000BB"]COLUMN_PRIVILEGES[/COLOR][COLOR="#007700"]|
|[/COLOR][COLOR="#0000BB"]ENGINES[/COLOR][COLOR="#007700"]|
+---------------------------------------+
[/COLOR][COLOR="#0000BB"]6 rows in set[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]0.01 sec[/COLOR][COLOR="#007700"])[/COLOR][/COLOR]
|
|
|
|