LoginSignup
3
3

More than 5 years have passed since last update.

Sybaseコマンドメモ

Last updated at Posted at 2017-03-15

Sybaseを触らなければいけない機会が訪れたので基礎中の基礎からメモ

DB接続

SQL> use <DBname>

現在のDBにある全てのデータ型のオブジェクトを表示

SQL> sp_help

テーブル一覧取得

SQL> Select sysobjects.name From sysobjects
Where type = 'U' Order By sysobjects.name

データベース一覧取得

  • sysdatabasesシステムテーブルを参照
    1> select name,dbid,crdate,dumptrdate from sysdatabases
    2> go

  • sp_helpdbを実行
    1> sp_helpdb
    2> go

テーブル概要取得

1> sp_help TAKESI_MY_PROFILE
2> go

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3