Category Archives: 数据库

SQL2005中文乱码解决方案

使用SQL SERVER2005的时候常常遇到中文字符为乱码的情况,经过研究发现,设置SQL的排序规则可以解决这个问题。

1、登录服务器打开Microsoft SQL Server Management Studio。

2、在要修改的数据库上单击鼠标右键,并选择“属性”。

3、在弹出的数据库属性窗口中点击“选择页”中的“选项”。

4、将排序规则由默认的SQL_Latin1_General_CP1_CI_AS修改为Chinese_PRC_CI_AS。

5、点击确定就OK。

varchar修改为nvarchar
char修改为nchar

Continue reading

Posted in 数据库 | Leave a comment

如何用phpmyadmin上传大文件

找到 php.ini 文件,修改其中的 upload_max_filesize、memory_limit、post_max_size 值。…
Continue reading

Posted in 数据库 | Leave a comment

EXCEL 自定义菜单

Sub XXXscrap()Dim XXX As CommandBarPopupDim scrap As CommandBarPopupDim about As CommandBarControlDim finderror As CommandBarControlDim cleanup As CommandBarControlDim updatascrap As CommandBarControl’菜单栏出现公司名称Set XXX = Application.CommandB…
Continue reading

Posted in 数据库 | Tagged | Leave a comment

bat 备份文件,上传文件

文件1:ftp  -n  -s:"upload.txt"call upload_bankup_rename.bat文件2:upload.txtOpen 192.168.1.1User username passwordCd /as3t/exp_imp/C162/scrapBinPromptmput E:\escrap\test\transfer.csvmput E:\escrap\test\adjust.csvbye文件3:upload_bank…
Continue reading

Posted in 数据库 | Leave a comment

怎样把数据库中一个字段的内容存入数组里

首先筛选出数据库中content字段的纪录个数count定义一个数组,存放内容:String content[]=new content[count];//筛选值,并将其存放在数组中 sql="select * from 表名"; db.execQuery(Util.gb2iso(sql)); int n = 0;while (db.rs.next()) {content[n]=db.rs.getstring(“content&rdq…
Continue reading

Posted in 数据库 | Tagged | Leave a comment

Excel问题集合

引用问题


Continue reading

Posted in 数据库 | Tagged | 7 Comments

EXCEL VBA语句集300

        定制模块行为(1) Option Explicit ‘强制对模块内所有变量进行声明Option Private Module ‘标记模块为私有,仅对同一工程中其它模块有用,在宏对话框中不显示 Option Compare Text ‘字符串不区分大小写 Option Base 1 ‘指定数组的第一个下标为1(2) On Error Resume Next ‘忽略错误继续执行VBA代码,避免出…
Continue reading

Posted in 数据库 | Tagged | Leave a comment

Application.DisplayAlerts = False

在程序执行过程中使出现的警告框不显示example:…………Application.DisplayAlerts = FalseSheet1.DeleteApplication.DisplayAlerts = True……………
Continue reading

Posted in 数据库 | Leave a comment

ORACLE数据类型

 字段类型   中文说明   限制条件   其它说明       CHAR   固定长度字符串   最大长度2000   bytes             VARCHAR2   可变长度的字符串   最大长度4000   bytes     可做索引的最大长度749   &nb…
Continue reading

Posted in 数据库 | Tagged | 1 Comment

DateDiff 函数

DateDiff 函数   返回 Variant (Long) 的值,表示两个指定日期间的时间间隔数目。语法DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])DateDiff 函数语法中有下列命名参数:部分              &nbs…
Continue reading

Posted in 数据库 | Tagged | Leave a comment