|
|
[mysql_fields]Description
This custom type runs a "SHOW FIELDS IN ..." query against the database and table specified in the enclosing inline and returns the results as a map, where the key for each item is the field name and the value is a map of the type, null, key, default, and extra values. The values for an individual field can be returned by calling it directly by name. The value of an individual setting for a given field can be returned by passing it as a param. See below for examples. The tag also includes an alias for "mysql_columns." Must be used within an inline and only works with MySQL datasources. Parametersnone Sample Usage
Source CodeClick the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
Comments |
|||||||||||||||||||
Updated
This tag has been updated to work with complex queries by creating a temp table based on the original query. It also returns additional information about each column. Thanks to Bil Corry for a few enhancements.