mysql connector 和 sqlserver ado.net 的区别

1,虽然同样是实现了IDataReader接口,但是 对于

MySql.Data.MySqlClient.MySqlDataReader  和 System.Data.SqlClient.SqlDataReader

来说GetSchemaTable 方法的返回结果是不同的

以下是返回的datatable的结构

mysql sqlserver
AllowDBNull AllowDBNull
BaseCatalogName BaseCatalogName
BaseColumnName BaseColumnName
BaseSchemaName BaseSchemaName
BaseTableName BaseServerName
ColumnName  BaseTableName
ColumnOrdinal ColumnName
ColumnSize ColumnOrdinal
DataType ColumnSize
IsAliased DataType
IsAutoIncrement DataTypeName
IsExpression IsAliased
IsHidden IsAutoIncrement
IsIdentity IsColumnSet
IsKey IsExpression
IsLong IsHidden
IsReadOnly IsIdentity
IsRowVersion IsKey
IsUnique IsLong
NumericPrecision IsReadOnly
NumericScale IsRowVersion
ProviderType IsUnique
  NonVersionedProviderType
  NumericPrecision
  NumericScale
  ProviderSpecificDataType
  ProviderType
  UdtAssemblyQualifiedName
  XmlSchemaCollectionDatabase
  XmlSchemaCollectionName
  XmlSchemaCollectionOwningSchema
时间: 2024-10-12 21:46:40

mysql connector 和 sqlserver ado.net 的区别的相关文章

python3-连接MySQL(mysql.connector与MySQLdb区别)

import mysql.connector cnx = mysql.connector.connect(user='scott', password='tiger',host='127.0.0.1',database='employees') cnx.close() import MySQLdb db = MySQLdb.connect(host="localhost", # your host, usually localhost user="john", #

mysql connector c++ (vc2010)

这几天一直在尝试c++连接mysql,尝试了mysql c api以及mysql connector c++ 这2种方法(还有一种方法是使用ado,但是撸主比较懒,还是喜欢比较直接点的方法),然而mysql c api 编译通过但是运行怎么都不行,所以换成了mysql connector c++ 这种方式.接下来我将会记录我在配置vc2010的过程 0x00  环境 IDE:vc2010 c++库:boost(使用mysql connector c++需要先配置boost库),mysql con

MySQL Connector/J 6.x jdbc.properties 配置, mysql-connector-java-6.0.4.jar 异常

报错信息 Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value '?й???????' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezon

MySQL单列索引和组合索引的区别介绍(转)

原文:http://database.51cto.com/art/201011/233234.htm MySQL单列索引是我们使用MySQL数据库中经常会见到的,MySQL单列索引和组合索引的区别可能有很多人还不是十分的了解,下面就为您分析两者的主要区别,供您参考学习. 为了形象地对比两者,再建一个表: CREATE TABLE myIndex ( i_testID INT NOT NULL AUTO_INCREMENT, vc_Name VARCHAR(50) NOT NULL, vc_Cit

Using MySQL Connector .NET 6.6.4 with Entity Framework 5

I had been waiting for the latest MySQL connector for .NET to come out so I can move on to the new and sleek Visual Studio 2012 for my projects. Found out connector 6.6.4 has been out which can work with VS2012 so I happily install it. I start a bran

mysql.connector操作mysql的blob值

This tutorial shows you how to work with MySQL BLOB data in Python, with examples of updating and reading BLOB data. The  authors table has a column named  photo whose data type is BLOB. We will read data from a picture file and update to the photo c

Installing MySQL Connector/Python using pip v1.5

The latest pip versions will fail on you when the packages it needs to install are not hosted on PyPI . When you try to install MySQL Connector/Python the usually way, you get following message is: shell> pip install mysql-connector-python Could not

MySQL Connector/Python 开发者指南

本文翻译自:https://dev.mysql.com/doc/connector-python/en/ 摘要 这篇手册描述了怎么来安装和配置 MySQL Connector/Python,MySQL Connector/Python 是 Python 和 MySQL 服务进行通信的一个独立驱动程序,本篇手册还将阐述如何利用它来开发数据库应用程序. 获取 Connector/Python 的每一次发布版本的改动细节,请参阅 MySQL Connector/Python Release Notes

mysql.connector 事务总结

mysql.connector事务总结: connection.autocommit = 0 (默认值) 事务处理 使用 connection.commit()方法 #!/usr/bin/env python # -*- coding:utf-8 -*- '''mysql.connector事务总结: connection.autocommit = 0 (默认值) 事务处理 使用 connection.commit()方法 分析: 智能commit状态: connection.autocommi