缺少一個copy的控制檔案1)執行shutdown abort2)複製一個好的copy到一個新目錄3)sql>startup nomount sql>select name ,value from v$spparameter where name = 'control_files';NAME VALUE---------------
SQL> show user;顯示目前使用者(在SQL*Plus工具中專用的,更好的方式是使用SQL> select user from dual;語句進行查看目前使用者,其中dual表是每個SQL*Plus使用者都可以使用的Oracle表,這裡真正重要的是要知道它只含有一行資料。); SQL> set pagelize 20;設定每頁顯示行數為20; SQL> set linesize 100;設定每行顯示的字元數為100
說明:複製表(只複製結構,源表名:a 新表名:b)以下是程式碼片段:SQL: select * into b from a where 1<>1說明:拷貝表(拷貝資料,源表名:a 目標表名:b)以下是程式碼片段:SQL: insert into b(a, b, c) select d,e,f from b;說明:顯示文章、提交人和最後回複時間以下是程式碼片段:SQL: select a.title,a.username,b.adddate from table a,(select
索引器Indexers C#引入了一個索引器(Indexers)的功能,它能讓我們像處理數組一樣處理對象。在C#社區中,我們又把它叫做“智能數組(smart arrays)”。定義C#索引器就像定義屬性一樣方便。(這裡“屬性”指property,.) 下面是它的結構 <modifier> <return type> this [argument list] ...{ get ...{ // Get codes goes here } set ...{
System.Diagnostics.Process提供了開啟進程、結束進程、擷取系統進程的資訊等方法。使用它應該可以實現windows工作管理員的功能。#MyProcess.csusing System;using System.Diagnostics;namespace MyProjects{ public class MyProcess : System.IDisposable { int processID ; public
declare @objid int,@objname char(40)set @objname = '表a'select @objid = id from sysobjects where id = object_id(@objname)select 'Column_name' = name from syscolumns where id = @objid order by colid 拓展一下,判斷表a中是否有表b中不存在的列名.declare @objid int,@objname
假設當前執行命令為:select * from tab; (a)ppend 添加文本到緩衝區當前行尾 a order by tname 結果:select * from tab order by tname; (註:a後面跟2個空格) (c)hange/old/new 在當前行用新的文本替換舊的文本 c/*/tname 結果:select tname from tab; (c)hange/text 從當前行刪除文本 c/tab 結果:select