メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能
  • 「Company Administration(会社情報の管理)」では、お使いのDell EMCのサイトや製品、製品レベルでのコンタクト先に関する情報を管理できます。

文書番号: 000146595


SAP HANA Cheat Sheet

概要: This will log in to HANA, instance 42 with user myuser and password mypassword and execute the SQL statement select * from sys.users.

文書の内容


現象

SQL Syntax

To issue SQL commands on a HANA database use the command hdbsql:

hdbsql -i 42 -u myuser -p mypassword "select * from sys.users"

This will log in to HANA, instance 42 with user myuser and password mypassword and execute the SQL statement select * from sys.users.

To display all schemas in the database:

select * from schemas

To display all tables:

select * from tables

To display all users:

select * from sys.users

To find out your logmode:

SELECT value FROM "SYS"."M_INIFILE_CONTENTS" WHERE KEY='log_mode'

To create a table:

create table table1(c varchar(20))

See also

life of a log segment

文書のプロパティ


最後に公開された日付

10 4月 2021

バージョン

3

文書の種類

Solution