How to create and query data on SQL Database
Learn how to create and list tables and add data in SQL Database databases using the Azion REST API.
Once you’ve created your SQL Database database, you can begin creating tables and inserting data into them.
go to SQL Database referenceCreating a table
Run the following POST request in your terminal, replacing [TOKEN VALUE] with your personal token and {id_database} with the ID of the database you want to create a table into:
You should receive the following response:
Adding data into a table
Run the following POST request in your terminal, replacing [TOKEN VALUE] with your personal token and {id_database} with the ID of the table you want to insert data into:
You should receive the following response:
Listing data in a table
Run the following POST request in your terminal, replacing [TOKEN VALUE] with your personal token and {id_database} with the ID of the table you want to retrieve:
You should receive the following response: