AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Administrar bases de datos / Funciones SQL
  • Tip: How can I speed up the execution time of the SQLListTable function?
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
List all the tables that can be accessed by the connected database system.
Ejemplo
// Non-detailed list of tables
Str is string = SQLListTable(False)
Str = NoSpace(Str)
// Add into a List Box control
ListAdd(LIST_TableList, Str)
// Detailed list
Str is string = SQLListTable()
Str = NoSpace(Str)
// Add into a Table control
TableAdd(TABLE_SOURCETAB, Str)
Str is string = SQLListTable()
Str = NoSpace(Str)
// Processes the first line returned
Str = ExtractString(Str, 1, CR)
// Extract the name of the table
Name = ExtractString(Str, 1)
// Extract the qualifier
Qual = ExtractString(Str, 2)
// Extract the owner
Prop = ExtractString(Str, 3)
// Extract the type of table
Type = ExtractString(Str, 4)
Sintaxis
<Result> = SQLListTable([<Detailed list> [, <Elements to List>]])
<Result>: Character string
Characteristics (detailed or not) of each element listed for the current connection. These characteristics can be inserted into a list box by ListAdd.
  • Detailed characteristics:
    <Name of table> + TAB + <Qualifier> + TAB + <Owner of table> +
    TAB + <Type of table> + CR + <Name of table 2> + TAB + <Qualifier 2> +
    TAB + <Owner of table 2> + <Type of table 2> + CR +...
  • Non-detailed characteristics:
    <Name of Table 1> + CR + <Name of Table 2> + CR +...
<Detailed list>: Optional boolean
  • True (default) to get a detailed list,
  • False to get a non-detailed list.
<Elements to List>: Optional boolean
  • True to list the tables and the views,
  • False (default) to list:
    • by an OLE DB provider: tables, views and system tables
    • via an ODBC driver: tables, views, system tables, aliases, etc. Warning: this operation can be very slow, for example when accessing Oracle via ODBC, as the ORACLE database has a large number of tables.
Observaciones

Tip: How can I speed up the execution time of the SQLListTable function?

The following syntax is recommended:
SQLListTable(False, True)
The second parameter to True indicates that temporary tables, systems, aliases, etc. should not be listed.
Componente: wd300hf.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local