gpt-4-0314· openai
Suzhen/CodeChat
I have my Database Systems Lab exam tomorrow. help me revise MSSQL syntax.
- User
I have my Database Systems Lab exam tomorrow. help me revise MSSQL syntax.
- Assistant
Sure! Here's a quick revision of some commonly used MSSQL syntax:
- Create a database:
CREATE DATABASE database_name;- Create a table:
CREATE TABLE table_name ( column1 datatype constraint, column2 datatype constraint, … );- Insert data into the table:
INSERT INTO table_name (column1, column2, …) VALUES (value1, value2, …);- Select data from the table:
SELECT column1, column2, … FROM table_name WHERE condition;
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.