Your cart is currently empty!
Category: h2 Database
-
Khóa học miễn phí H2 Database – Call nhận dự án làm có lương
H2 Database – Call
CALL is a SQL command which belongs to H2 database server. This command is used to calculate a simple expression. It returns the result of the given expression in a single column field. When it returns an array of results, then each element in the array is displayed as a column value.
Syntax
Following is the generic syntax of the CALL command.
CALL expression;
We can use the arithmetic expression in this syntax.
Example
Let us take an example and execute an arithmetic expression (15 * 25) using call command.
CALL 15*25;
The above command produces the following output.
375 375
Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc
Khóa học miễn phí H2 Database – Backup nhận dự án làm có lương
H2 Database – Backup
BACKUP is the command used to take database backup into a separate .zip file. Objects are not locked, and when it takes backup the transaction log is also copied. Admin rights are required to execute this command.
Syntax
Following is the generic syntax of the Backup command.
BACKUP TO fileNameString;
Example
In this example, let us take a backup of the current database into backup.zip file. Use the following command for the same.
BACKUP TO ''backup.zip
On executing the above command, you will get the backup.zip file in your local file system.
Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc