M
Mr. X.
Hello.
I am using the derby db with squirrel-sql.
First, I am looking for a tutorial for the sql of Derby.
Second, there are some questions :
1. When creating a table :
CREATE TABLE customers (
id int generated always as identity constraint cust_pk primary key, ...
)
How can I resolve the value of the last id after inserting a record ?
2. How can I execute several sql-statements, no metter if the last one
failed.
drop table my_table ; // yet it not exists
Create table my_table ...;
Create table my_table2 ... ;
3. How can I connect the db from another computer ?
(Should I use for that the EmbeddedDriver, which I didn't see a choice of
entering the computer name / host name).
Thanks
I am using the derby db with squirrel-sql.
First, I am looking for a tutorial for the sql of Derby.
Second, there are some questions :
1. When creating a table :
CREATE TABLE customers (
id int generated always as identity constraint cust_pk primary key, ...
)
How can I resolve the value of the last id after inserting a record ?
2. How can I execute several sql-statements, no metter if the last one
failed.
drop table my_table ; // yet it not exists
Create table my_table ...;
Create table my_table2 ... ;
3. How can I connect the db from another computer ?
(Should I use for that the EmbeddedDriver, which I didn't see a choice of
entering the computer name / host name).
Thanks