當前位置:首頁 » 數字幣問答 » 數字貨幣mdt

數字貨幣mdt

發布時間: 2024-08-16 08:54:48

A. 誰有DOS命令的解釋哦.

winver---------檢查Windows版本
wmimgmt.msc----打開windows管理體系結構(WMI)
wupdmgr--------windows更新程序
wscript--------windows腳本宿主設置
write----------寫字板
winmsd---------系統信息
wiaacmgr-------掃描儀和照相機向導
winchat--------XP自帶區域網聊天

mem.exe--------顯示內存使用情況
Msconfig.exe---系統配置實用程序
mplayer2-------簡易widnows media player
mspaint--------畫圖板
mstsc----------遠程桌面連接
mplayer2-------媒體播放機
magnify--------放大鏡實用程序
mmc------------打開控制台
mobsync--------同步命令

dxdiag---------檢查DirectX信息
drwtsn32------ 系統醫生
devmgmt.msc--- 設備管理器
dfrg.msc-------磁碟碎片整理程序
diskmgmt.msc---磁碟管理實用程序
dcomcnfg-------打開系統組件服務
ddeshare-------打開DDE共享設置
dvdplay--------DVD播放器
at/? > 盤符\文件名 將文件倒入記事本

net stop messenger-----停止信使服務
net start messenger----開始信使服務
notepad--------打開記事本
nslookup-------網路管理的工具向導
ntbackup-------系統備份和還原
narrator-------屏幕「講述人」
ntmsmgr.msc----移動存儲管理器
ntmsoprq.msc---移動存儲管理員操作請求
netstat -an----(TC)命令檢查介面

syncapp--------創建一個公文包
sysedit--------系統配置編輯器
sigverif-------文件簽名驗證程序
sndrec32-------錄音機
shrpubw--------創建共享文件夾
secpol.msc-----本地安全策略
syskey---------系統加密,一旦加密就不能解開,保護windows xp系統的雙重密碼
services.msc---本地服務設置
Sndvol32-------音量控製程序
sfc.exe--------系統文件檢查器
sfc /scannow---windows文件保護

tsshutdn-------60秒倒計時關機命令
tourstart------xp簡介(安裝完成後出現的漫遊xp程序)
taskmgr--------任務管理器

eventvwr-------事件查看器
eudcedit-------造字程序
explorer-------打開資源管理器

packager-------對象包裝程序
perfmon.msc----計算機性能監測程序
progman--------程序管理器

regedit.exe----注冊表
rsop.msc-------組策略結果集
regedt32-------注冊表編輯器
rononce -p ----15秒關機
regsvr32 /u *.dll----停止dll文件運行
regsvr32 /u zipfldr.dll------取消ZIP支持

cmd.exe--------CMD命令提示符
chkdsk.exe-----Chkdsk磁碟檢查
certmgr.msc----證書管理實用程序
calc-----------啟動計算器
charmap--------啟動字元映射表
cliconfg-------SQL SERVER 客戶端網路實用程序
Clipbrd--------剪貼板查看器
conf-----------啟動netmeeting
compmgmt.msc---計算機管理
cleanmgr-------垃圾整理
ciadv.msc------索引服務程序

osk------------打開屏幕鍵盤
odbcad32-------ODBC數據源管理器
oobe/msoobe /a----檢查XP是否激活
lusrmgr.msc----本機用戶和組
logoff---------注銷命令

iexpress-------木馬捆綁工具,系統自帶

Nslookup-------IP地址偵測器

fsmgmt.msc-----共享文件夾管理器

utilman--------輔助工具管理器

gpedit.msc-----組策略

run裡面的內容可以定製的

定製你的運行輸入框
在Windows裡面,Microsoft提供了一個新的快捷啟動程序的方法:運行
打開[開始]------[運行],裡面可以直接啟動一些特定的程序,如:輸入notepad.exe啟動記事本,輸入xdict.exe啟動金山詞霸等等。

啟動的原理是什麼呢?很簡單,在注冊表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths下面,可以看到很多次級主鍵,每一個次級主鍵就對應著一個能夠在運行裡面輸入的內容。

以ACDSee.exe主鍵為例:右邊有2個字元串,默認對應的是這個程序的絕對路徑,而Path對應的是這個程序所處的目錄。

定製的方法很簡單:在App Paths下新建一個不同名的次級主鍵(例如:Smallfrogs.EXE),然後修改右邊的默認為你要啟動的程序的路徑(例如:C:\Program Files\My APP\Smallfrogs.EXE),然後新建一個字元串Path,修改為那個程序所處的目錄(例如::C:\Program Files\My APP\)。

然後就可以在運行裡面輸入:Smallfrogs.EXE來啟動C:\Program Files\My APP\Smallfrogs.EXE這個程序了。

注意!系統是靠次級主鍵的名字來辨認程序的,即使你不使用Smallfrogs.EXE建立次級主鍵,而使用SSSSS.EXE建立次級主鍵,如果莫任何Path的內容和上例一樣的話,輸入SSSSS.EXE啟動的程序仍然是C:\Program Files\My APP\Smallfrogs.EXE這個程序。

wupdmgr WIDNOWS UPDATE
shutdown -a 關機解除
about:home 登陸首頁
... (三個半形點) 我的電腦
dvdplay DVD播放器
fsmgmt 共享控制台
桌面 打開桌面所在文件夾
..(兩點)打開C:\Documents and Settings
.(一點)打開「開始」菜單
calc 計算器
clipbrd 剪貼板查看器
control 打開控制面板
eventvwr 事件查看器
mstsc 遠程桌面

Win2000命令全集[帖] -> Windows 2k/2003 Server
accwiz.exe > Accessibility Wizard for walking you through setting up your machine for your mobility needs. 輔助工具向導
acsetups.exe > ACS setup DCOM server executable
actmovie.exe > Direct Show setup tool 直接顯示安裝工具
append.exe > Allows programs to open data in specified directories as if they were in the current directory. 允許程序打開制定目錄中的數據
arp.exe > NETWORK Display and modify IP - Hardware addresses 顯示和更改計算機的IP與硬體物理地址的對應列表
at.exe > AT is a scheling utility also included with UNIX 計劃運行任務
atmadm.exe > Displays statistics for ATM call manager. ATM調用管理器統計
attrib.exe > Display and modify attributes for files and folders 顯示和更改文件和文件夾屬性
autochk.exe > Used to check and repair Windows File Systems 檢測修復文件系統
autoconv.exe > Automates the file system conversion ring reboots 在啟動過程中自動轉化系統
autofmt.exe > Automates the file format process ring reboots 在啟動過程中格式化進程
autolfn.exe > Used for formatting long file names 使用長文件名格式
bootok.exe > Boot acceptance application for registry
bootvrfy.exe > Bootvrfy.exe, a program included in Windows 2000 that notifies the system that startup was successful. Bootvrfy.exe can be run on a local or remote computer. 通報啟動成功
cacls.exe > Displays or modifies access control lists (ACLs) of files. 顯示和編輯ACL
calc.exe > Windows Calculators 計算器
cdplayer.exe > Windows CD Player CD播放器
change.exe > Change { User | Port | Logon } 與終端伺服器相關的查詢
charmap.exe > Character Map 字元映\*表
chglogon.exe > Same as using "Change Logon" 啟動或停用會話記錄
chgport.exe > Same as using "Change Port" 改變埠(終端服務)
chgusr.exe > Same as using "Change User" 改變用戶(終端服務)
chkdsk.exe > Check the hard disk for errors similar to Scandisk 3 Stages must specify a Drive Letter 磁碟檢測程序
chkntfs.exe > Same as using chkdsk but for NTFS NTFS磁碟檢測程序
cidaemon.exe > Component of Ci Filer Service 組成Ci文檔服務
cipher.exe > Displays or alters the encryption of directories [files] on NTFS partitions. 在NTFS上顯示或改變加密的文件或目錄
cisvc.exe > Content Index -- Its the content indexing service for I 索引內容
ckcnv.exe > Cookie Convertor 變換Cookie
cleanmgr.exe > Disk Cleanup, popular with Windows 98 磁碟清理
cliconfg.exe > SQL Server Client Network Utility SQL客戶網路工具
clipbrd.exe > Clipboard viewer for Local will allow you to connect to other clipboards 剪貼簿查看器
clipsrv.exe > Start the clipboard Server 運行Clipboard服務
clspack.exe > CLSPACK used to create a file listing of system packages 建立系統文件列表清單
cluster.exe > Display a cluster in a domain 顯示域的集群
_cmd_.exe > Famous command prompt 沒什麼好說的!
cmdl32.exe > Connection Manager Auto-Download 自動下載連接管理
cmmgr32.exe > Connection Manager 連接管理器
cmmon32.exe > Connection Manager Monitor 連接管理器監視
cmstp.exe > Connection Manager Profile Manager 連接管理器配置文件安裝程序
comclust.exe > about cluster server 集群
comp.exe > ComClust Add, Remove, or Join a cluster. 比較兩個文件和文件集的內容*
compact.exe > Displays or alters the compression of files on NTFS partitions. 顯示或改變NTFS分區上文件的壓縮狀態
conime.exe > Console IME IME控制台
control.exe > Starts the control panel 控制面板
convert.exe > Convert File System to NTFS 轉換文件系統到NTFS
convlog.exe > Converts MS IIS log files 轉換IIS日誌文件格式到NCSA格式
cprofile.exe > Copy profiles 轉換顯示模式
cscript.exe > MS Windows Scripts Host Version 5.1 較本宿主版本
csrss.exe > Client Server Runtime Process 客戶伺服器Runtime進程
csvde.exe > Comma Separated Variable Import/Export Utility 日至格式轉換程序
dbgtrace.exe > 和Terminal Server相關
dcomcnfg.exe > Display the current DCOM configuration. DCOM配置屬性
dcphelp.exe > ?
dcpromo.exe > Promote a domain controller to ADSI AD安裝向導
ddeshare.exe > Display DDE shares on local or remote computer DDE共享
ddmprxy.exe >
debug.exe > Runs Debug, a program testing and editing tool. 就是DEBUG啦!
dfrgfat.exe > Defrag FAT file system FAT分區磁碟碎片整理程序
dfrgntfs.exe > Defrag NTFS file system NTFS分區磁碟碎片整理程序
dfs_cmd_.exe > configures a Dfs tree 配置一個DFS樹
dfsinit.exe > Distributed File System Initialization 分布式文件系統初始化
dfssvc.exe > Distributed File System Server 分布式文件系統伺服器
diantz.exe > MS Cabinet Maker 製作CAB文件
diskperf.exe > Starts physical Disk Performance counters 磁碟性能計數器
dllhost.exe > dllhost is used on all versions of Windows 2000. dllhost is the hedost process for all COM+ applications. 所有COM+應用軟體的主進程
dllhst3g.exe >
dmadmin.exe > Disk Manager Service 磁碟管理服務
dmremote.exe > Part of disk management 磁碟管理服務的一部分
dns.exe > DNS Applications DNS
doskey.exe > recalls Windows command lines and creates macros 命令行創建宏
dosx.exe > DOS Extender DOS擴展
dplaysvr.exe > Direct Play Helper 直接運行幫助
drwatson.exe > Dr Watson for 2000 Fault Detector 華生醫生錯誤檢測
drwtsn32.exe > Dr Watson for 2000 viewer and configuration manager 華生醫生顯示和配置管理
dtcsetup.exe > Installs MDTC
dvdplay.exe > Windows 2000 DVD player DVD播放
dxdiag.exe > Direct-X Diagnostics Direct-X診斷工具
edlin.exe > line-oriented text editor. 命令行的文本編輯器(歷史悠久啊!)
edlin.exe > line-oriented text editor. 命令行的文本編輯器(歷史悠久啊!)
esentutl.exe > MS Database Utility MS資料庫工具
eudcedit.exe > Private character editor Ture Type造字程序
eventvwr.exe > Windows 2000 Event Viewer 事件查看器
evnt_cmd_.exe > Event to trap translator; Configuration tool
evntwin.exe > Event to trap translator setup
exe2bin.exe > Converts EXE to binary format 轉換EXE文件到二進制
expand.exe > Expand Files that have been compressed 解壓縮
extrac32.exe > CAB File extraction utility 解CAB工具
fastopen.exe > Fastopen tracks the location of files on a hard disk and stores the information in memory for fast access. 快速訪問在內存中的硬碟文件
faxcover.exe > Fax Cover page editor 傳真封面編輯
faxqueue.exe > Display Fax Queue 顯示傳真隊列
faxsend.exe > Fax Wizard for sending faxes 發送傳真向導
faxsvc.exe > Starts fax server 啟動傳真服務
fc.exe > Compares two files or sets of files and their differences 比較s兩個文件的不同
find.exe > Searches for a text string in file or files 查找文件中的文本行
findstr.exe > Searches for strings in files 查找文件中的行
finger.exe > Fingers a user and displays statistics on that user Finger一個用戶並顯示出統計結果
fixmapi.exe > Fix mapi files 修復MAPI文件
flattemp.exe > Enable or disable temporally directories 允許或者禁用臨時文件目錄
fontview.exe > Display fonts in a font file 顯示字體文件中的字體
forcedos.exe > Forces a file to start in dos mode. 強制文件在DOS模式下運行
freecell.exe > Popular Windows Game 空當接龍
ftp.exe > File Transfer Protocol used to transfer files over a network connection 就是FTP了
gdi.exe > Graphic Device Interface 圖形界面驅動
grovel.exe >
grpconv.exe > Program Manager Group Convertor 轉換程序管理員組
help.exe > displays help for Windows 2000 commands 顯示幫助
hostname.exe > Display hostname for machine. 顯示機器的Hostname
ie4uinit.exe > IE5 User Install tool IE5用戶安裝工具
ieshwiz.exe > Customize folder wizard 自定義文件夾向導
iexpress.exe > Create and setup packages for install 穿件安裝包
iisreset.exe > Restart IIS Admin Service 重啟IIS服務
internat.exe > Keyboard Language Indicator Applet 鍵盤語言指示器
ipconfig.exe > Windows 2000 IP configuration. 察看IP配置
ipsecmon.exe > IP Security Monitor IP安全監視器
ipxroute.exe > IPX Routing and Source Routing Control Program IPX路由和源路由控製程序
irftp.exe > Setup FTP for wireless communication 無線連接
ismserv.exe > Intersite messaging Service 安裝或者刪除Service Control Manager中的服務
jdbgmgr.exe > Microsoft debugger for java 4 Java4的調試器
jetconv.exe > Convert a Jet Engine Database 轉換Jet Engine資料庫
jetpack.exe > Compact Jet Database. 壓縮Jet資料庫
jview.exe > Command-line loader for Java Java的命令行裝載者
krnl386.exe > Core Component for Windows 2000 2000的核心組件
label.exe > Change label for drives 改變驅動器的卷標
lcwiz.exe > License Compliance Wizard for local or remote systems. 許可證符合向導
ldifde.exe > LDIF cmd line manager LDIF目錄交換命令行管理
licmgr.exe > Terminal Server License Manager 終端服務許可協議管理
lights.exe > display connection status lights 顯示連接狀況
llsmgr.exe > Windows 2000 License Manager 2000許可協議管理
llssrv.exe > Start the license Server 啟動許可協議伺服器
lnkstub.exe >
locator.exe > RPC Locator 遠程定位
lodctr.exe > Load perfmon counters 調用性能計數
logoff.exe > Log current user off. 注銷用戶
lpq.exe > Displays status of a remote LPD queue 顯示遠端的LPD列印隊列的狀態,顯示被送到基於Unix的伺服器的列印任務
lpr.exe > Send a print job to a network printer. 重定向列印任務到網路中的列印機。通常用於Unix客戶列印機將列印任務發送給連接了列印設備的NT的列印機伺服器。
lsass.exe > LSA Executable and Server DLL 運行LSA和Server的DLL
lserver.exe > Specifies the new DNS domain for the default server 指定默認Server新的DNS域
os2.exe > An OS/2 Warp Server (os2 /o) OS/2
os2srv.exe > An OS/2 Warp Server OS/2
os2ss.exe > An OS/2 Warp Server OS/2
osk.exe > On Screen Keyboard 屏幕鍵盤
packager.exe > Windows 2000 Packager Manager 對象包裝程序
pathping.exe > Combination of Ping and Tracert 包含Ping和Tracert的程序
pax.exe > is a POSIX program and path names used as arguments must be specified in POSIX format. Use "//C/Users/Default" instead of "C:\USERS\DEFAULT." 啟動攜帶型存檔互換 (Pax) 實用程序
pentnt.exe > Used to check the Pentium for the floating point division error. 檢查Pentium的浮點錯誤
perfmon.exe > Starts Windows Performance Monitor 性能監視器
ping.exe > Packet Internet Groper 驗證與遠程計算機的連接
posix.exe > Used for backward compatibility with Unix 用於兼容Unix
print.exe > Cmd line used to print files 列印文本文件或顯示列印隊列的內容。
progman.exe > Program manager 程序管理器
proquota.exe > Profile quota program
psxss.exe > POSIX Subsystem Application Posix子系統應用程序
qappsrv.exe > Displays the available application terminal servers on the network
在網路上顯示終端伺服器可用的程序
qprocess.exe > Display information about processes local or remote 在本地或遠程顯示進程的信息(需終端服務)
query.exe > Query TERMSERVER user process and sessions 查詢進程和對話
quser.exe > Display information about a user logged on 顯示用戶登陸的信息(需終端服務)
qwinsta.exe > Display information about Terminal Sessions. 顯示終端服務的信息
rasadmin.exe > Start the remote access admin service 啟動遠程訪問服務
rasautou.exe > Creates a RAS connection 建立一個RAS連接
rasdial.exe > Dial a connection 撥號連接
ras.exe > Starts a RAS connection 運行RAS連接
rcp.exe > Copies a file from and to a RCP service. 在 Windows 2000 計算機和運行遠程外殼埠監控程序 rshd 的系統之間復制文件
rdpclip.exe > RdpClip allows you to and paste files between a terminal session and client console session. 再終端和本地復制和粘貼文件
recover.exe > Recovers readable information from a bad or defective disk 從壞的或有缺陷的磁碟中恢復可讀取的信息。
redir.exe > Starts the redirector service 運行重定向服務
regedt32.exe > 32-bit register service 32位注冊服務
regini.exe > modify registry permissions from within a script 用腳本修改注冊許可
register.exe > Register a program so it can have special execution characteristics. 注冊包含特殊運行字元的程序
regsvc.exe >
regsvr32.exe > Registers and unregisters dlls. As to how and where it registers them I dont know. 注冊和反注冊DLL
regtrace.exe > Options to tune debug options for applications failing to mp trace statements
Trace 設置
regwiz.exe > Registration Wizard 注冊向導
remrras.exe >
replace.exe > Replace files 用源目錄中的同名文件替換目標目錄中的文件。
reset.exe > Reset an active section 重置活動部分
rexec.exe > Runs commands on remote hosts running the REXEC service. 在運行 REXEC 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機上的用戶名,只有安裝了 TCP/IP 協議後才可以使用該命令。
risetup.exe > Starts the Remote Installation Service Wizard. 運行遠程安裝向導服務
route.exe > display or edit the current routing tables. 控制網路路由表
routemon.exe > no longer supported 不再支持了!
router.exe > Router software that runs either on a dedicated DOS or on an OS/2 system. Route軟體在 DOS或者是OS/2系統
rsh.exe > Runs commands on remote hosts running the RSH service 在運行 RSH 服務的遠程計算機上運行命令
rsm.exe > Mounts and configures remote system media 配置遠程系統媒體
rsnotify.exe > Remote storage notification recall 遠程存儲通知回顯
rsvp.exe > Resource reservation protocol 源預約協議
runas.exe > RUN a program as another user 允許用戶用其他許可權運行指定的工具和程序
rundll32.exe > Launches a 32-bit dll program 啟動32位DLL程序
runonce.exe > Causes a program to run ring startup 運行程序再開始菜單中
rwinsta.exe > Reset the session subsystem hardware and software to known initial values 重置會話子系統硬體和軟體到最初的值
savemp.exe > Does not write to e:\winnt\user.dmp 不寫入User.dmp中
scardsvr.exe > Smart Card resource management server 子能卡資源管理伺服器
schupgr.exe > It will read the schema update files (.ldf files) and upgrade the schema. (part of ADSI) 讀取計劃更新文件和更新計劃
secedit.exe > Starts Security Editor help 自動安全性配置管理
services.exe > Controls all the services 控制所有服務
sethc.exe > Set High Contrast - changes colours and display mode Logoff to set it back to normal 設置高對比
setreg.exe > Shows the Software Publishing State Key values 顯示軟體發布的國家語言
setup.exe > GUI box prompts you to goto control panel to configure system components 安裝程序(轉到控制面板)
setver.exe > Set Version for Files 設置 MS-DOS 子系統向程序報告的 MS-DOS 版本號
sfc.exe > System File Checker test and check system files for integrity 系統文件檢查
sfmprint.exe > Print Services for Macintosh 列印Macintosh服務
sfmpsexe.exe >
sfmsvc.exe >
shadow.exe > Monitor another Terminal Services session. 監控另外一台中端伺服器會話
share.exe > Windows 2000 和 MS-DOS 子系統不使用該命令。接受該命令只是為了與 MS-DOS 文件兼容
shmgrate.exe >
shrpubw.exe > Create and Share folders 建立和共享文件夾
sigverif.exe > File Signature Verification 文件簽名驗證
skeys.exe > Serial Keys utility 序列號製作工具
smlogsvc.exe > Performance Logs and Alerts 性能日誌和警報
smss.exe >
sndrec32.exe > starts the Windows Sound Recorder 錄音機
sndvol32.exe > Display the current volume information 顯示聲音控制信息
snmp.exe > Simple Network Management Protocol used for Network Mangement 簡單網路管理協議
snmptrap.exe > Utility used with SNMP SNMP工具
sol.exe > Windows Solitaire Game 紙牌
sort.exe > Compares files and Folders 讀取輸入、排序數據並將結果寫到屏幕、文件和其他設備上
SPOOLSV.EXE > Part of the spooler service for printing 列印池服務的一部分
sprestrt.exe >
srvmgr.exe > Starts the Windows Server Manager 伺服器管理器
stimon.exe > WDM StillImage- > Monitor
stisvc.exe > WDM StillImage- > Service
subst.exe > Associates a path with a drive letter 將路徑與驅動器盤符關聯
svchost.exe > Svchost.exe is a generic host process name for services that are run from dynamic-link libraries (DLLs). DLL得主進程
syncapp.exe > Creates Windows Briefcase. 創建Windows文件包
sysedit.exe > Opens Editor for 4 system files 系統配置編輯器
syskey.exe > Encrypt and secure system database NT賬號資料庫按群工具
sysocmgr.exe > Windows 2000 Setup 2000安裝程序
systray.exe > Starts the systray in the lower right corner. 在低許可權運

B. sql 處理字元串的函數有哪些

1.絕對值
SQL:select abs(-1) value
O:select abs(-1) value from al
2.取整(大)
S:select ceiling(-1.001) value
O:select ceil(-1.001) value from al
3.取整(小)
S:select floor(-1.001) value
O:select floor(-1.001) value from al
4.取整(截取)
S:select cast(-1.002 as int) value
O:select trunc(-1.002) value from al
5.四捨五入
S:select round(1.23456,4) value 1.23460
O:select round(1.23456,4) value from al 1.2346
6.e為底的冪
S:select Exp(1) value 2.7182818284590451
O:select Exp(1) value from al 2.71828182
7.取e為底的對數
S:select log(2.7182818284590451) value 1
O:select ln(2.7182818284590451) value from al; 1
8.取10為底對數
S:select log10(10) value 1
O:select log(10,10) value from al; 1
9.取平方
S:select SQUARE(4) value 16
O:select power(4,2) value from al 16
10.取平方根
S:select SQRT(4) value 2
O:select SQRT(4) value from al 2
11.求任意數為底的冪
S:select power(3,4) value 81
O:select power(3,4) value from al 81
12.取隨機數
S:select rand() value
O:select sys.dbms_random.value(0,1) value from al;
13.取符號
S:select sign(-8) value -1
O:select sign(-8) value from al -1
----------數學函數
14.圓周率
S:SELECT PI() value 3.1415926535897931
O:不知道
15.sin,cos,tan 參數都以弧度為單位
例如:select sin(PI()/2) value 得到1(SQLServer)
16.Asin,Acos,Atan,Atan2 返回弧度
17.弧度角度互換(SQLServer,Oracle不知道)
DEGREES:弧度-〉角度
RADIANS:角度-〉弧度
---------數值間比較
18. 求集合最大值
S:select max(value) value from
(select 1 value
union
select -2 value
union
select 4 value
union
select 3 value)a
O:select greatest(1,-2,4,3) value from al
19. 求集合最小值
S:select min(value) value from
(select 1 value
union
select -2 value
union
select 4 value
union
select 3 value)a
O:select least(1,-2,4,3) value from al
20.如何處理null值(F2中的null以10代替)
S:select F1,IsNull(F2,10) value from Tbl
O:select F1,nvl(F2,10) value from Tbl
--------數值間比較
21.求字元序號
S:select ascii('a') value
O:select ascii('a') value from al
22.從序號求字元
S:select char(97) value
O:select chr(97) value from al
23.連接
S:select '11'+'22'+'33' value
O:select CONCAT('11','22')||33 value from al
23.子串位置 --返回3
S:select CHARINDEX('s','sdsq',2) value
O:select INSTR('sdsq','s',2) value from al
23.模糊子串的位置 --返回2,參數去掉中間%則返回7
S:select patindex('%d%q%','sdsfasdqe') value
O:oracle沒發現,但是instr可以通過第四霾問 刂瞥魷執問?BR> select INSTR('sdsfasdqe','sd',1,2) value from al 返回6
24.求子串
S:select substring('abcd',2,2) value
O:select substr('abcd',2,2) value from al
25.子串代替 返回aijklmnef
S:SELECT STUFF('abcdef', 2, 3, 'ijklmn') value
O:SELECT Replace('abcdef', 'bcd', 'ijklmn') value from al
26.子串全部替換
S:沒發現
O:select Translate('fasdbfasegas','fa','我' ) value from al
27.長度
S:len,datalength
O:length
28.大小寫轉換 lower,upper
29.單詞首字母大寫
S:沒發現
O:select INITCAP('abcd dsaf df') value from al
30.左補空格(LPAD的第一個參數為空格則同space函數)
S:select space(10)+'abcd' value
O:select LPAD('abcd',14) value from al
31.右補空格(RPAD的第一個參數為空格則同space函數)
S:select 'abcd'+space(10) value
O:select RPAD('abcd',14) value from al
32.刪除空格
S:ltrim,rtrim
O:ltrim,rtrim,trim
33. 重復字元串
S:select REPLICATE('abcd',2) value
O:沒發現
34.發音相似性比較(這兩個單詞返回值一樣,發音相同)
S:SELECT SOUNDEX ('Smith'), SOUNDEX ('Smythe')
O:SELECT SOUNDEX ('Smith'), SOUNDEX ('Smythe') from al
SQLServer中用SELECT DIFFERENCE('Smithers', 'Smythers') 比較soundex的差
返回0-4,4為同音,1最高
--------------日期函數
35.系統時間
S:select getdate() value
O:select sysdate value from al
36.前後幾日
直接與整數相加減
37.求日期
S:select convert(char(10),getdate(),20) value
O:select trunc(sysdate) value from al
select to_char(sysdate,'yyyy-mm-dd') value from al
38.求時間
S:select convert(char(8),getdate(),108) value
O:select to_char(sysdate,'hh24:mm:ss') value from al
39.取日期時間的其他部分
S:DATEPART 和 DATENAME 函數 (第一個參數決定)
O:to_char函數 第二個參數決定
參數---------------------------------下表需要補充
year yy, yyyy
quarter qq, q (季度)
month mm, m (m O無效)
dayofyear dy, y (O表星期)
day dd, d (d O無效)
week wk, ww (wk O無效)
weekday dw (O不清楚)
Hour hh,hh12,hh24 (hh12,hh24 S無效)
minute mi, n (n O無效)
second ss, s (s O無效)
millisecond ms (O無效)
----------------------------------------------
40.當月最後一天
S:不知道
O:select LAST_DAY(sysdate) value from al
41.本星期的某一天(比如星期日)
S:不知道
O:SELECT Next_day(sysdate,7) vaule FROM DUAL;
42.字元串轉時間
S:可以直接轉或者select cast('2004-09-08'as datetime) value
O:SELECT To_date('2004-01-05 22:09:38','yyyy-mm-dd hh24-mi-ss') vaule FROM DUAL;
43.求兩日期某一部分的差(比如秒)
S:select datediff(ss,getdate(),getdate()+12.3) value
O:直接用兩個日期相減(比如d1-d2=12.3)
SELECT (d1-d2)*24*60*60 vaule FROM DUAL;
44.根據差值求新的日期(比如分鍾)
S:select dateadd(mi,8,getdate()) value
O:SELECT sysdate+8/60/24 vaule FROM DUAL;
45.求不同時區時間
S:不知道
O:SELECT New_time(sysdate,'ydt','gmt' ) vaule FROM DUAL;
-----時區參數,北京在東8區應該是Ydt-------
AST ADT 大西洋標准時間
BST BDT 白令海標准時間
CST CDT 中部標准時間
EST EDT 東部標准時間
GMT 格林尼治標准時間
HST HDT 阿拉斯加—夏威夷標准時間
MST MDT 山區標准時間
NST 紐芬蘭標准時間
PST PDT 太平洋標准時間
YST YDT YUKON標准時間
Oracle支持的字元函數和它們的Microsoft SQL Server等價函數:
函數 Oracle Microsoft SQL Server
把字元轉換為ASCII ASCII ASCII
字串連接 CONCAT (expression + expression)
把ASCII轉換為字元 CHR CHAR
返回字元串中的開始字元(左起) INSTR CHARINDEX
把字元轉換為小寫 LOWER LOWER
把字元轉換為大寫 UPPER UPPER
填充字元串的左邊 LPAD N/A
清除開始的空白 LTRIM LTRIM
清除尾部的空白 RTRIM RTRIM
字元串中的起始模式(pattern) INSTR PATINDEX
多次重復字元串 RPAD REPLICATE
字元串的語音表示 SOUNDEX SOUNDEX
重復空格的字串 RPAD SPACE
從數字數據轉換為字元數據 TO_CHAR STR
子串 SUBSTR SUBSTRING
替換字元 REPLACE STUFF
將字串中的每個詞首字母大寫 INITCAP N/A
翻譯字元串 TRANSLATE N/A
字元串長度 LENGTH DATELENGTH or LEN
列表中最大的字元串 GREATEST N/A
列表中最小的字元串 LEAST N/A
如果為NULL則轉換字串 NVL ISNULL

日期函數
函數 Oracle Microsoft SQL Server
日期相加 (date column +/- value) or
ADD_MONTHS DATEADD
兩個日期的差 (date column +/- value) or
MONTHS_BETWEEN DATEDIFF
當前日期和時間 SYSDATE GETDATE()
一個月的最後一天 LAST_DAY N/A
時區轉換 NEW_TIME N/A
日期後的第一個周日 NEXT_DAY N/A
代表日期的字元串 TO_CHAR DATENAME
代表日期的整數 TO_NUMBER
(TO_CHAR)) DATEPART
日期舍入 ROUND CONVERT
日期截斷 TRUNC CONVERT
字元串轉換為日期 TO_DATE CONVERT
如果為NULL則轉換日期 NVL ISNULL

轉換函數
函數 Oracle Microsoft SQL Server
數字轉換為字元 TO_CHAR CONVERT
字元轉換為數字 TO_NUMBER CONVERT
日期轉換為字元 TO_CHAR CONVERT
字元轉換為日期 TO_DATE CONVERT
16進制轉換為2進制 HEX_TO_RAW CONVERT
2進制轉換為16進制 RAW_TO_HEX CONVERT

其它行級別的函數
函數 Oracle Microsoft SQL Server
返回第一個非空表達式 DECODE COALESCE
當前序列值 CURRVAL N/A
下一個序列值 NEXTVAL N/A
如果exp1 = exp2, 返回null DECODE NULLIF
用戶登錄賬號ID數字 UID SUSER_ID
用戶登錄名 USER SUSER_NAME
用戶資料庫ID數字 UID USER_ID
用戶資料庫名 USER USER_NAME
當前用戶 CURRENT_USER CURRENT_USER
用戶環境(audit trail) USERENV N/A
在CONNECT BY子句中的級別 LEVEL N/A

合計函數
函數 Oracle Microsoft SQL Server
Average AVG AVG
Count COUNT COUNT
Maximum MAX MAX
Minimum MIN MIN
Standard deviation STDDEV STDEV or STDEVP
Summation SUM SUM
Variance VARIANCE VAR or VARP
Oracle還有一個有用的函數EXTRACT,提取並且返回日期時間或時間間隔表達式中特定的時間域:
EXTRACT(YEAR FROM 日期)

熱點內容
最新比特幣等於多少人民幣 發布:2024-09-15 06:14:52 瀏覽:986
區塊鏈超級黃金長江2號是騙局嗎 發布:2024-09-15 06:05:04 瀏覽:167
如何注冊360區塊鏈 發布:2024-09-15 05:41:45 瀏覽:647
揭密幣圈第一大案 發布:2024-09-15 05:33:07 瀏覽:673
菲律賓區塊鏈比特幣 發布:2024-09-15 02:36:25 瀏覽:597
螞蟻t9挖礦設置 發布:2024-09-15 02:36:22 瀏覽:681
usdt超短線交易盈利本金8倍 發布:2024-09-15 02:24:30 瀏覽:537
獲取數字貨幣的軟體 發布:2024-09-15 02:12:33 瀏覽:486
怎樣購買瑞波幣XRP 發布:2024-09-14 21:49:49 瀏覽:560
星期星球探險家挖礦 發布:2024-09-14 21:46:52 瀏覽:227