ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:printsql

printSql

Syntax
array printSql (
  optional string $format = 'NONE'
  )

Description

Returns the last generated current SQL array in printable format.

Call this method to fetch the array of SQL queries resulting from ParseSchema() or ParseSchemaString().

The method returns an array of SQL statements or FALSE if an error occurs. The available options are:

ValueDescription
'string' or 'text'Returns a value formatted for the console
'html'Returns an HTML formatted string

Any other provided argument returns a PHP array, which can be sent to executeSchema() or executeSqlArray

v5/axmls/printsql.txt · Last modified: 2016/01/13 02:26 by mnewnham