摘要:
2012-04-27 22:39:05|分类:JAVA|标签:返回刷新|举报|字号订阅只用window.history.back(-1);返回页面但不会刷新,还是原来的数据下面的代码可以实现返回上一页并自动刷新response.sendRedirect(request.getHeader("Refe... 阅读全文
摘要:
Private Declare Function SendMessage Lib "user32 " Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, _ ByVal wParam As Long, _ lParam As Any) As Long Private Const LB_SETHORIZONTALEXTEN... 阅读全文
摘要:
系统要求进行SQL优化,对效率比较低的SQL进行优化,使其运行效率更高,其中要求对SQL中的部分in/not in修改为exists/not exists修改方法如下:in的SQL语句SELECT id, category_id, htmlfile, title, convert(varchar(2... 阅读全文
摘要:
1.获取所有用户名:SELECT name FROM Sysusers where status='2' and islogin='1'islogin='1'表示帐户islogin='0'表示角色status='2'表示用户帐户status='0'表示糸统帐户2.获取所有数据库名:SELECT Na... 阅读全文
摘要:
Option ExplicitPrivate Type RECT Left As Long Top As Long Right As Long Bottom As LongEnd TypePrivate Type DRAWITEMSTRUCT ... 阅读全文
摘要:
1 Private Sub GridToExl_Click() 2 On Error Resume Next 3 If DataGrid1.Columns.Count = 0 Then 4 5 MsgBox "抱歉,没有数据可供打印!", vbOKOnly, "提示" 6 Exit Sub 7 En 阅读全文
摘要:
string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;data source=" + filePath + ";Extended Properties='Excel 12.0;HDR=Yes;IMEX=1'";//Excel 2007文件Provide... 阅读全文
摘要:
PHP向MSSQL2008中写入数据,中文乱码首先:查看SQLserver编码格式的SQL语句为:SELECTCOLLATIONPROPERTY('Chinese_PRC_Stroke_CI_AI_KS_WS', 'CodePage')查询结果的含义:936 简体中文GBK950 繁体中文BIG54... 阅读全文