select number, text from test_table union all select number, text from test_table_2. Здесь уже вывелись все строки, так как мы указали union all. А теперь давайте рассмотрим, какие могут быть ошибки даже в этом простом запросе.
> SELECT COUNT(*),CONCAT((SELECT CONCAT(user,password) FROM mysql.user LIMIT 1), > 0x20, FLOOR(RAND(0)*2)) x > FROM
...concat((select (select concat(0x7e,0x27,unhex(Hex(cast(database() as char))),0x27,0x7e)) from `information_schema`.tables limit 0,1),floor
I rather foolishly allowed SQL injection into my server under certain circumstances. However I can't quite see what the attack achieves, and how to repair whatever-it-is that was done.
Subject: SQL injection attempt. From: Lester Caine <lester@xxxxxxxxxxx>.
SELECT CONCAT("SQL ", "Tutorial ", "is ", "fun!") AS ConcatenatedString; Try it Yourself ».
mysql> SELECT CONCAT_WS(',','First name','Second name','Last Name')
Select CONCAT(Nombre, ' ', Apellidos) As Nombre From usuarios; Esta función nos extraerá el campo Nombre y Apellidos separados por un espacio, unidos en un solo campo llamado «Nombre», de esta manera tan solo debemos mostrar un dato de información. Esta función también se puede utilizar...
pandas.concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False, keys=None, levels=None, names=None, verify_integrity=False, sort