Код: Выделить всё
read -p "entry: " entry
sql="select concat('entry ', id) from mytbl where id = ?";
$mysql_conn "prepare stmnt from '${sql}'; set @id='${entry}';
execute stmnt using @id;deallocate prepare stmnt";
Также пробовал:
Код: Выделить всё
select concat('entry ',?)
Подробнее здесь: https://stackoverflow.com/questions/797 ... -for-mysql
Мобильная версия