php-sql-query-builder icon indicating copy to clipboard operation
php-sql-query-builder copied to clipboard

Export values

Open Dokans opened this issue 7 years ago • 2 comments

Hi, sorry it's not a real issue but it's somehow possible to export solo raw SQL for update or insert?

Dokans avatar May 17 '17 15:05 Dokans

I too would like to do this. So far, I haven't seen anything obvious in the documentation.

jcmosaiclearning avatar Jan 10 '18 21:01 jcmosaiclearning

@Dokans

$builder = new MySqlBuilder();
$query = $builder->select($table);
...
$sql = $builder->write($query); //gives the raw sql query

marcus-hiles avatar Mar 29 '19 11:03 marcus-hiles