
SQL
中国村民
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SQL语句学习
1.统计指定时间范围内的记录条数 select count(*) from SENTRY2013121050103 where EntryLane =1001 and EntryTime between '2013-12-17 15:30:00' and '2013-12-17 17:00:00'原创 2013-12-17 17:09:03 · 489 阅读 · 0 评论 -
查询字段值出现多次的字段值
查询字段值出现多次的字段值转载 2014-10-22 14:01:26 · 783 阅读 · 0 评论 -
SQL Server循环执行动态SQL语句.
SQL Server循环执行动态SQL语句. 2015年2月3日15:14:20 使用Navicate工具执行查询成功。 declare @name nvarchar(100) declare @sql nvarchar(200) declare @i int set @i =10000 while @i<=99999 begin set @name = 'test' + cast(原创 2015-02-03 15:17:13 · 4661 阅读 · 0 评论 -
Host 'ETCV3' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
2014年4月18日11:30:51 Host 'ETCV3' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'转载 2014-04-18 11:30:16 · 1156 阅读 · 0 评论 -
SQL Server表存在则进行查重 SQL语句
2014年10月30日14:31:28 SQL Server表存在则进行查重 SQL语句转载 2014-10-30 14:35:44 · 2346 阅读 · 0 评论 -
两个同步表的字段复制.Oracle.
两个同步表的字段复制.Oracle. 2014年11月13日10:07:19 更新字段: update B_TXF_JIESSJ a set F_VC_CHAIZXX = (select F_VC_CHAIZXX from B_TXF_CHEDXFYSSJ b where a.F_VC_JIAOYJLID=b.F_VC_JIAOYJLID)原创 2014-11-13 10:08:41 · 1459 阅读 · 0 评论 -
按字段值分组表中记录
按字段值分组表中记录 2014年8月14日14:26:15原创 2014-08-14 14:26:10 · 556 阅读 · 0 评论 -
获得某字段为最小值的所有记录
获得某字段为最小值的所有记录转载 2014-08-26 10:40:30 · 1901 阅读 · 0 评论 -
使用CppSQLite3访问SQLite数据库
使用CppSQLite3访问SQLite数据库 2014年4月9日16:33:59 C代码:原创 2014-04-09 16:33:11 · 3545 阅读 · 0 评论 -
mysql高版本兼容老版本的密码格式
mysql高版本兼容老版本的密码格式 2014年4月22日18:45:21原创 2014-04-22 18:45:01 · 1241 阅读 · 0 评论 -
MFC中使用ADO访问Oracle
2014年3月26日17:28:15 MFC中使用ADO访问Oracle 通过执行SQL语句访问数据库。 _ConnectionPtr pConnection=NULL;//连接 _RecordsetPtr pRecordset=NULL;//记录集 ::CoInitialize(NULL); pConnection.CreateInstance(__uuidof原创 2014-03-26 17:28:36 · 7422 阅读 · 0 评论 -
MFC ADO 使用Oracle事务处理
2014年3月27日09:14:22 MFC ADO 使用Oracle事务处理 代码: try { CString sSQL; pConnection->BeginTrans(); sSQL.Format(_T("insert into LWW_TEST (SN,x,y) values(5,5,5)")); pConnection->Execute((_bstr_t原创 2014-03-27 09:13:27 · 1559 阅读 · 0 评论 -
拼SQL语句执行更新
2014年3月29日14:00:00 拼SQL语句执行更新 try { CString sInsert; CString str; sInsert.Format(_T("update SEXIT2013090100007 set transfermark=transfermark+8 where ")); sInsert+=_T("programstartti原创 2014-03-29 13:58:39 · 675 阅读 · 0 评论 -
ADO查询站SQLServer,字段类型
2014年3月29日10:29:19 ADO查询站SQLServer,字段类型 _ConnectionPtr pStationConnection = NULL;//连接 _RecordsetPtr pStationRecordset = NULL;//记录集 pStationConnection.CreateInstance(__uuidof(Connection));原创 2014-03-29 10:28:36 · 1306 阅读 · 0 评论 -
OCILIB在VS2008中的使用
OCILIB在VS2008中的使用原创 2014-04-29 17:25:21 · 4147 阅读 · 0 评论 -
MFC中使用ADO 插入Oracle,数据类型
2014年3月29日15:02:17 MFC中使用ADO 插入Oracle,数据类型 建表语句 create table LWW_TEST (SN NUMBER primary key,CARDID VARCHAR2(25),MVLICENSE VARCHAR2(20),ENTRYTIME DATE) 代码: try { CString sInsert; CStrin原创 2014-03-29 15:03:38 · 1308 阅读 · 0 评论 -
MFC使用ADO在Oracle中查重
2014年3月29日15:33:28 MFC使用ADO在Oracle中查重 代码: _bstr_t bstrPointSQL(_T("select SN from LWW_TEST where SN=774")); try { pCenterRecordset->Open(bstrPointSQL, pCenterConnection.GetInterfacePtr(原创 2014-03-29 15:33:54 · 1164 阅读 · 0 评论 -
MySQL批量导入数据SQL语句(CSV数据文件格式)
load data local infile 'd:\aa.txt' replace into table e_voidcard FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' ignore 1 lines(cardnetwork,cardid,cardstatus,cardtype,validflag,int原创 2014-02-17 17:08:26 · 4319 阅读 · 0 评论 -
CheckPoint关键词做字段名使用.
SqlServer: CREATE TABLE [dbo].[test] ( [CheckPoint] varbinary(9) NULL ) ON [PRIMARY] GO INSERT INTO test ([CheckPoint]) VALUES (0x010203040506070809) 1、通过写十六进制字符串来写字节串。 2、CheckPoi原创 2015-05-09 12:41:21 · 521 阅读 · 0 评论