This topic introduces how to create a command-line window.
Background information
OceanBase Developer Center (ODC) integrates the CLI tool OceanBase Client (OBClient) in the form of a command-line window. OBClient is the recommended CLI client for OceanBase Database. ODC allows you to use OBClient without a need to download or install it. In the command-line window, you can directly execute SQL or PL statements and view the results in real time. You can also run files uploaded to the server by using the SOURCE command.
Create a command-line window
Notice
You can create up to three command-line windows at a time. If you create more than three command-line windows, the connection status of the windows cannot be guaranteed.
Assume that you want to insert data to the employee table in the odc_test database in the command-line window.
| Parameter | Example |
|---|---|
| Data Source | mysql410 |
| Database Name | odc_test |
| Table Name | employee |
In the SQL development window, click the data source
mysql410.In the command-line window, edit the SQL statement to insert data into the
employeetable.INSERT INTO `odc_test`.`employee`(`emp_no`,`birthday`,`name`) VALUES (1001,'2023-07-16','xiaohong');Edit the SQL statement to query the data inserted into the
employeetable.SELECT `emp_no`, `birthday`, `name` FROM `odc_test`.`employee`;