c++|mysql|odbc|数据|数据库|语句
发信人: engineer (剑胆琴心~还是得走,sigh...), 信区: Linux
标 题: MySQL数据库SQL语句的C++ ODBC接口类测试结果 (转载)
发信站: BBS 水木清华站 (Mon Aug 9 18:03:47 1999)
【 以下文字转载自 Database 讨论区 】
【 原文由 engineer 所发表 】
MySql数据库SQL语句的C++ ODBC接口类测试结果
engineer 1999.8.7
数据库表结构:
Database: xxx Table: yyy Rows: 10019
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| NAME | varchar(32) | | PRI | | |
| CNAME | varchar(32) | | | | |
| TYPE | char(1) | | | E | |
+-------+-------------+------+-----+---------+-------+
查询方式:
在表中的位置平均分布.
查询结果:
A.( 本地server,PII350/128M/8G)
a. 查询字符串.
total [1000 times] inquire time is 1.105382(s)
average time is 0.001105(s)
total [3000 times] sql time is 3.416125(s)
average time is 0.001139(s)
total [10000 times] sql time is 11.567662(s)
average time is 0.001157(s)
b. 插入记录( varchar(32),varchar(32),smallint)
total [7000 times] sql time is 7.545522(s)
average time is 0.000755(s)
B.( 100M局域网内server,PII350/128M/8G与PII400/128M/10G)
a. 插入记录( varchar(32),varchar(32),smallint)
total [10000 times] sql time is 8.480562(s)
average time is 0.000848(s)
b. 查询字符串.
total [10000 times] sql time is 9.493681(s)
average time is 0.000949(s)
测试结论:
1.MySQL作为免费的SQL数据库,查询效果如此,已能完全满足
一般系统的需要,可以采用.
2.MySQL 支持各种BLOB数据类型(大型字符串),可存储达600K,
16M,甚至4G大小的块数据,可考虑保存大型文件.但需保证
不同SQL库间的数据类型一致性.
3.现有字符方式和图形方式的数据管理工具,功能较齐全.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Mac version
God-level code editing software (SublimeText3)
