首页 > 数据库 >20230629 java.sql.DatabaseMetaData

20230629 java.sql.DatabaseMetaData

时间:2023-08-28 09:58:11浏览次数:46  
标签:返回 java String 版本号 20230629 DatabaseMetaData TABLE 驱动程序

介绍

  • java.sql.DatabaseMetaData
  • public interface DatabaseMetaData extends Wrapper
  • 数据库的元数据

API

常量

  • procedureResultUnknown : 0
  • procedureNoResult : 1
  • procedureReturnsResult : 2
  • procedureColumnUnknown : 0
  • procedureColumnIn : 1
  • procedureColumnInOut : 2
  • procedureColumnOut : 4
  • procedureColumnReturn : 5
  • procedureColumnResult : 3
  • procedureNoNulls : 0
  • procedureNullable : 1
  • procedureNullableUnknown : 2
  • columnNoNulls : 0
  • columnNullable : 1
  • columnNullableUnknown : 2
  • bestRowTemporary : 0
  • bestRowTransaction : 1
  • bestRowSession : 2
  • bestRowUnknown : 0
  • bestRowNotPseudo : 1
  • bestRowPseudo : 2
  • versionColumnUnknown : 0
  • versionColumnNotPseudo : 1
  • versionColumnPseudo : 2
  • importedKeyCascade : 0
  • importedKeyRestrict : 1
  • importedKeySetNull : 2
  • importedKeyNoAction : 3
  • importedKeySetDefault : 4
  • importedKeyInitiallyDeferred : 5
  • importedKeyInitiallyImmediate : 6
  • importedKeyNotDeferrable : 7
  • typeNoNulls : 0
  • typeNullable : 1
  • typeNullableUnknown : 2
  • typePredNone : 0
  • typePredChar : 1
  • typePredBasic : 2
  • typeSearchable : 3
  • tableIndexStatistic : 0
  • tableIndexClustered : 1
  • tableIndexHashed : 2
  • tableIndexOther : 3
  • attributeNoNulls : 0
  • attributeNullable : 1
  • attributeNullableUnknown : 2
  • sqlStateXOpen : 1
  • sqlStateSQL : 2
  • sqlStateSQL99 : 2
  • functionColumnUnknown : 0
  • functionColumnIn : 1
  • functionColumnInOut : 2
  • functionColumnOut : 3
  • functionReturn : 4
  • functionColumnResult : 5
  • functionNoNulls : 0
  • functionNullable : 1
  • functionNullableUnknown : 2
  • functionResultUnknown : 0
  • functionNoTable : 1
  • functionReturnsTable : 2

public

  • getTables

    • ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException;
    • 返回某个目录 (catalog) 中所有表的描述,该目录必须匹配给定的模式 (schema) 、表名字模式以及类型标准。
    • 模式用于描述一组相关的表和访问权限,而目录描述的是一组相关的模式
    • catalog 和 schema 参数可以为 "" ,用于检索那些没有目录或模式的表。如果不想考虑目录和模式,也可以将上述参数设为 null
    • types 数组包含了所需的表类型的名称,通常表类型有 "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM"。如果为 null ,则返回所有类型的表
    • 返回的结果集有 5 列,均为 String 类型
      • TABLE_CAT
      • TABLE_SCHEM
      • TABLE_NAME
      • TABLE_TYPE
      • REMARKS
  • getJDBCMajorVersion

  • getJDBCMinorVersion

    • 建立数据库连接的 JDBC 驱动程序的主版本号和次版本号
    • 例如,一个 JDBC 4.3 的驱动程序有一个主版本号4和次版本号3
  • getMaxConnections

    • 返回可同时连接到数据库的最大并发连接数
  • getMaxStatements

    • 返回单个数据库连接允许同时打开的最大并发语句数。如果对允许打开的语句数目没有限制或者不可知,则返回 0
  • allProceduresAreCallable

  • allTablesAreSelectable

  • autoCommitFailureClosesAllResultSets

  • dataDefinitionCausesTransactionCommit

  • dataDefinitionIgnoredInTransactions

  • deletesAreDetected

  • doesMaxRowSizeIncludeBlobs

  • generatedKeyAlwaysReturned

  • getAttributes

  • getBestRowIdentifier

  • getCatalogSeparator

  • getCatalogTerm

  • getCatalogs

  • getClientInfoProperties

  • getColumnPrivileges

  • getColumns

  • getConnection

  • getCrossReference

  • getDatabaseMajorVersion

  • getDatabaseMinorVersion

  • getDatabaseProductName

  • getDatabaseProductVersion

  • getDefaultTransactionIsolation

  • getDriverMajorVersion

  • getDriverMinorVersion

  • getDriverName

  • getDriverVersion

  • getExportedKeys

  • getExtraNameCharacters

  • getFunctionColumns

  • getFunctions

  • getIdentifierQuoteString

  • getImportedKeys

  • getIndexInfo

  • getMaxBinaryLiteralLength

  • getMaxCatalogNameLength

  • getMaxCharLiteralLength

  • getMaxColumnNameLength

  • getMaxColumnsInGroupBy

  • getMaxColumnsInIndex

  • getMaxColumnsInOrderBy

  • getMaxColumnsInSelect

  • getMaxColumnsInTable

  • getMaxCursorNameLength

  • getMaxIndexLength

  • getMaxLogicalLobSize

  • getMaxProcedureNameLength

  • getMaxRowSize

  • getMaxSchemaNameLength

  • getMaxStatementLength

  • getMaxTableNameLength

  • getMaxTablesInSelect

  • getMaxUserNameLength

  • getNumericFunctions

  • getPrimaryKeys

  • getProcedureColumns

  • getProcedureTerm

  • getProcedures

  • getPseudoColumns

  • getResultSetHoldability

  • getRowIdLifetime

  • getSQLKeywords

  • getSQLStateType

  • getSchemaTerm

  • getSchemas

  • getSearchStringEscape

  • getStringFunctions

  • getSuperTables

  • getSuperTypes

  • getSystemFunctions

  • getTablePrivileges

  • getTableTypes

  • getTimeDateFunctions

  • getTypeInfo

  • getUDTs

  • getURL

  • getUserName

  • getVersionColumns

  • insertsAreDetected

  • isCatalogAtStart

  • isReadOnly

  • locatorsUpdateCopy

  • nullPlusNonNullIsNull

  • nullsAreSortedAtEnd

  • nullsAreSortedAtStart

  • nullsAreSortedHigh

  • nullsAreSortedLow

  • othersDeletesAreVisible

  • othersInsertsAreVisible

  • othersUpdatesAreVisible

  • ownDeletesAreVisible

  • ownInsertsAreVisible

  • ownUpdatesAreVisible

  • storesLowerCaseIdentifiers

  • storesLowerCaseQuotedIdentifiers

  • storesMixedCaseIdentifiers

  • storesMixedCaseQuotedIdentifiers

  • storesUpperCaseIdentifiers

  • storesUpperCaseQuotedIdentifiers

  • updatesAreDetected

  • usesLocalFilePerTable

  • usesLocalFiles

support

  • supportsBatchUpdates

    • 如果驱动程序支持批量更新,则返回 true
  • supportsANSI92EntryLevelSQL

  • supportsANSI92FullSQL

  • supportsANSI92IntermediateSQL

  • supportsAlterTableWithAddColumn

  • supportsAlterTableWithDropColumn

  • supportsCatalogsInDataManipulation

  • supportsCatalogsInIndexDefinitions

  • supportsCatalogsInPrivilegeDefinitions

  • supportsCatalogsInProcedureCalls

  • supportsCatalogsInTableDefinitions

  • supportsColumnAliasing

  • supportsConvert

  • supportsCoreSQLGrammar

  • supportsCorrelatedSubqueries

  • supportsDataDefinitionAndDataManipulationTransactions

  • supportsDataManipulationTransactionsOnly

  • supportsDifferentTableCorrelationNames

  • supportsExpressionsInOrderBy

  • supportsExtendedSQLGrammar

  • supportsFullOuterJoins

  • supportsGetGeneratedKeys

  • supportsGroupBy

  • supportsGroupByBeyondSelect

  • supportsGroupByUnrelated

  • supportsIntegrityEnhancementFacility

  • supportsLikeEscapeClause

  • supportsLimitedOuterJoins

  • supportsMinimumSQLGrammar

  • supportsMixedCaseIdentifiers

  • supportsMixedCaseQuotedIdentifiers

  • supportsMultipleOpenResults

  • supportsMultipleResultSets

  • supportsMultipleTransactions

  • supportsNamedParameters

  • supportsNonNullableColumns

  • supportsOpenCursorsAcrossCommit

  • supportsOpenCursorsAcrossRollback

  • supportsOpenStatementsAcrossCommit

  • supportsOpenStatementsAcrossRollback

  • supportsOrderByUnrelated

  • supportsOuterJoins

  • supportsPositionedDelete

  • supportsPositionedUpdate

  • supportsRefCursors

  • supportsResultSetConcurrency

  • supportsResultSetHoldability

  • supportsResultSetType

  • supportsSavepoints

  • supportsSchemasInDataManipulation

  • supportsSchemasInIndexDefinitions

  • supportsSchemasInPrivilegeDefinitions

  • supportsSchemasInProcedureCalls

  • supportsSchemasInTableDefinitions

  • supportsSelectForUpdate

  • supportsSharding

  • supportsStatementPooling

  • supportsStoredFunctionsUsingCallSyntax

  • supportsStoredProcedures

  • supportsSubqueriesInComparisons

  • supportsSubqueriesInExists

  • supportsSubqueriesInIns

  • supportsSubqueriesInQuantifieds

  • supportsTableCorrelationNames

  • supportsTransactionIsolationLevel

  • supportsTransactions

  • supportsUnion

  • supportsUnionAll

标签:返回,java,String,版本号,20230629,DatabaseMetaData,TABLE,驱动程序
From: https://www.cnblogs.com/huangwenjie/p/17650431.html

相关文章

  • 20230629 java.sql.ParameterMetaData
    介绍java.sql.ParameterMetaDatapublicinterfaceParameterMetaDataextendsWrapper预备语句参数的元数据API常量parameterNoNulls:0parameterNullable:1parameterNullableUnknown:2parameterModeUnknown:0parameterModeIn:1parameterModeInOut:2par......
  • 20230629 java.sql.PreparedStatement
    介绍java.sql.PreparedStatementpublicinterfacePreparedStatementextendsStatement预备语句APIpublicaddBatchclearParametersgetMetaData结果集元数据ResultSetMetaDatagetParameterMetaData预备语句参数的元数据ParameterMetaDataexecutee......
  • 20230629 java.sql.ResultSetMetaData
    介绍java.sql.ResultSetMetaDatapublicinterfaceResultSetMetaDataextendsWrapper结果集的元数据API常量columnNoNulls:0columnNullable:1columnNullableUnknown:2publicgetColumnCount返回当前ResultSet对象中的列数getColumnDisplaySize返......
  • 20230628 java.net.URLDecoder
    介绍java.net.URLDecoderpublicclassURLDecoderURL解码器对应的URL编码器类是URLEncoderURL编码模式保留字符A到Z、a到z、0到9,以及.-~_用+字符替换所有的空格将其他所有字符编码为UTF-8,并将每个字节都编码为%后面紧跟一个两位的十六进制数......
  • 20230628 java.net.URLEncoder
    介绍java.net.URLEncoderpublicclassURLEncoderURL编码器对应的URL解码器类是URLDecoderURL编码模式保留字符A到Z、a到z、0到9,以及.-~_用+字符替换所有的空格将其他所有字符编码为UTF-8,并将每个字节都编码为%后面紧跟一个两位的十六进制数......
  • 20230512 java.lang.Throwable
    介绍java.lang.ThrowablepublicclassThrowableimplementsSerializableError和Exception的父类,只有该类型才可以被throw和catch不是RuntimeException或Error子类的都被认为是检查异常(checkedexception),包括Throwable构造函数共有5个构造函数,继承时可以选择性......
  • 20230516 java.lang.StringBuilder
    介绍java.lang.StringBuilderpublicfinalclassStringBuilderextendsAbstractStringBuilderimplementsjava.io.Serializable,Comparable<StringBuilder>,CharSequence此类提供与StringBuffer兼容的API,但不保证线程安全append方法总是在构建器的末尾添加这些字符;......
  • 20230525 java.lang.Enum
    介绍java.lang.EnumpublicabstractclassEnum<EextendsEnum<E>>implementsConstable,Comparable<E>,Serializable所有枚举类的父类可序列化枚举类可以实现接口,不能继承APIstatic方法valueOfpublic方法name返回枚举常量名ordinal返回enum声明......
  • 20230711 java.lang.ClassLoader
    介绍java.lang.ClassLoaderpublicabstractclassClassLoader类加载器APIstaticClassLoadergetPlatformClassLoadergetSystemClassLoader获取系统类加载器,即用于加载第一个应用类的类加载器SystemResourcegetSystemResourcegetSystemResourceAsStreamgetSys......
  • 20230530 java.util.ServiceLoader
    介绍java.util.ServiceLoaderpublicfinalclassServiceLoader<S>implementsIterable<S>APIstaticload单个Class入参的方法使用当前线程上下文类加载,Thread.currentThread().getContextClassLoader()loadInstalled使用PlatformClassLoader类加载器加载pub......