2018年1月8日 星期一

MSSQL 顯示 TABLE 中的欄位名稱

MSSQL 顯示 TABLE 中的欄位名稱

USE [DB NAME]
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'TABLE NAME'

exec sp_columns [TABLE NAME]

2018年1月4日 星期四

AIX 查 RAM,CPU,HD,IP

AIX UNIX RAM
# prtconf -m
# bootinfo -r
# lsattr -El sys0 -a realmem
# lsattr -El mem0

Show CPU
# prtconf -s
# pmcycles -m
# lsdev -Cc processor

# bindprocessor -q

Show Hard disks/Capacity
# lsdev -Cc disk
# lspv
# bootinfo -s hdisk0

Show IP Addresses
# ifconfig -a | grep inet
# lsattr -El en0 -a netaddr

paging space
lsps -a

參考來源:http://www.unixmantra.com/2013/09/aix-listing-cpu-memory-ram-harddisks-ip-address.html