LassoScript Utility
Basics Browse Detail

[Database_TableNames] ... [/Database_TableNames]

Tag Link [Database_TableNames] ... Category Database
Type Container Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0
Lasso 3 Equivalent [DB_LayoutNames] ...

Description

[Database_TableNames] ... [/Database_TableNames] repeats for every table within a database. Accepts one required parameter, the name of the database. The [Database_TableNameItem] tag is used inside the container tags to display each table name.

Syntax

[Database_TableNames: 'Database Name']
  [Database_TableNameItem]
[/Database_TableNames]

Parameters

Required Parameters
Database Name The name of the database for which the tables should be returned.

Examples

To return the names of all tables in a database:

Use the [Database_TableNames] ... [/Database_TableNames] tags with an enclosed [Database_TableNameItem] tag. The following example lists all the tables that are available in the Contacts database.

[Database_TableNames: 'Contacts']
  <br>[Database_TableNameItem]
[/Database_TableNames]

<br>People
<br>Calls