sqlTypeInfo(RODBC)
sqlTypeInfo()所属R语言包:RODBC
Request Information about Data Types in an ODBC Database
ODBC数据库中的数据类型的请求信息
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Request information about data types in an ODBC database
请求有关的ODBC数据库中的数据类型
用法----------Usage----------
sqlTypeInfo(channel, type = "all", errors = TRUE, as.is = TRUE)
参数----------Arguments----------
参数:channel
connection handle as returned by odbcConnect.
返回的连接句柄odbcConnect。
参数:type
The types of columns about which information is requested. Possible values are "all", "char", "varchar" , "wchar", "wvarchar" (Unicode), "real", "float", "double", "integer", "smallint", "date", "time", "timestamp", "binary", "varbinary", "longvarbinary" and (its alias) "blob".
的列的类型有关的信息的请求的。可能的值是"all","char","varchar","wchar","wvarchar"(Unicode)的,"real","float","double","integer","smallint","date","time","timestamp","binary","varbinary","longvarbinary" (其别名)"blob"的。
参数:errors
logical: if true halt and display error, else return -1.
逻辑:如果真正的停止并显示错误,否则返回-1。
参数:as.is
as in sqlGetResults.
如在sqlGetResults。
Details
详细信息----------Details----------
sqlTypeInfo attempts to find the types of columns the database supports: ODBC drivers are not required to support this (but all known examples do). Where it is supported, it is used by sqlSave to decide what column types to create when creating a new table in the database.
sqlTypeInfo试图找到列类型的数据库支持ODBC驱动程序不支持(但所有已知的例子)。如果被支持,它使用sqlSave决定什么样的列类型创建一个新的数据库中的表时创建的。
值----------Value----------
A data frame on success, or character/numeric on error depending on the errors argument. Use sqlGetResults for further details of errors.
根据errors参数数据框成功,或字符/数字上的错误。使用sqlGetResults进一步详情的错误。
The columns returned may depend on the ODBC driver manager. For a fully ODBC 3 manager, see http://msdn.microsoft.com/en-us/library/ms714632%28VS.85%29.aspx: the symbolic constants mentioned there will be returned as numbers (and the values of the numeric constants can be found in the ODBC headers such as "sql.h" and "sqlext.h").
返回的列可能依赖于ODBC驱动程序管理器。对于一个完全ODBC 3经理,http://msdn.microsoft.com/en-us/library/ms714632%28VS.85%29.aspx提到的符号常量将返回数字(和值数字常量可以在ODBC头,如sql.h和sqlext.h)。
(作者)----------Author(s)----------
Brian Ripley
参见----------See Also----------
sqlGetResults, odbcGetInfo
sqlGetResults,odbcGetInfo
实例----------Examples----------
> names(sqlTypeInfo(channel))
[1] "TYPE_NAME" "DATA_TYPE" "COLUMN_SIZE"
[4] "LITERAL_PREFIX" "LITERAL_SUFFIX" "CREATE_PARAMS"
[7] "NULLABLE" "CASE_SENSITIVE" "SEARCHABLE"
[10] "UNSIGNED_ATTRIBUTE" "FIXED_PREC_SCALE" "AUTO_UNIQUE_VALUE"
[13] "LOCAL_TYPE_NAME" "MINIMUM_SCALE" "MAXIMUM_SCALE"
[16] "SQL_DATATYPE" "SQL_DATETIME_SUB" "NUM_PREC_RADIX"
[19] "INTERVAL_PRECISION"
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|