gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
SQL QUERY TO CREATE TABLE
- User
SQL QUERY TO CREATE TABLE
- Assistant
Sure, here is an example of an SQL query to create a table:
CREATE TABLE employees ( id INT PRIMARY KEY, name VARCHAR(50), age INT, department VARCHAR(50) );In this example, we are creating a table named "employees" with four columns: "id" (integer and primary key), "name" (string with maximum length of 50 characters), "age" (integer), and "department" (string with maximum length of 50 characters).