Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products

SAP HANA Cheat Sheet

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

This article applies to   This article does not apply to 

Symptoms

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

Article Properties
Article Number: 000146595
Article Type: Solution
Last Modified: 10 Apr 2021
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.
Article Properties
Article Number: 000146595
Article Type: Solution
Last Modified: 10 Apr 2021
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.