Logo and icon for AI2sql, a ChatGPT plugin with description: Converts a natural language text into an SQL query.. Find out more on Plugin Surf, the best plugin database.

AI2sql

Converts a natural language text into an SQL query.

AI2sql is a plugin that can convert natural language into SQL queries. By using AI capabilities, this plugin translates complex text into structured database questions without the need for programming knowledge. No more guessing which keywords to use or wondering whether you're making mistakes. AI2sql makes it easy for anyone to interact with databases. This plugin streamlines data retrieval processes and saves time and energy. With AI2sql, you can stop translating and start asking natural language questions to get the answers you need.

Learn how to use AI2sql effectively! Here are a few example prompts, tips, and the documentation of available commands.

Example prompts

  1. Prompt 1: "Convert the sentence 'Find all the movies directed by Christopher Nolan' into an SQL query."

  2. Prompt 2: "What is the average rating of movies released in the year 2020?"

  3. Prompt 3: "Retrieve the names and release dates of all movies from the 'Action' genre."

  4. Prompt 4: "Get the total count of movies produced by Marvel Studios."

  5. Prompt 5: "List the titles and directors of movies with a rating above 8."

Features and commands

Feature/CommandDescription
generateSQLThis command allows you to convert a natural language query into an SQL query. You need to provide the input text, table names, and columns for accurate conversion.
getAzureTablesThis command retrieves a list of tables from the connected SQL database. You can use this to get an overview of the available tables.
getAzureTablesWithColumnsThis command provides a list of tables with their respective columns from the connected SQL database. Use this to get a detailed understanding of table structures.
testMySQLConnectionThis command tests the connection to a MySQL database using user credentials, server name, and ai2sql_token. It returns the table names and their columns associated with the ai2sql_token.
testPostgreSQLConnectionThis command tests the connection to a PostgreSQL database using user credentials, server name, and ai2sql_token. It returns the table names and their columns associated with the ai2sql_token.
testConnectionThis command tests the connection to a SQL database using user credentials, server name, and ai2sql_token. It returns the table names and their columns associated with the ai2sql_token.

Configuration

User authenticationOAuth2
API documentation

For AI

NameAI2sql
DescriptionConverts a natural language text into an SQL query.

Updates

First added20 June 2023

Admin

AI2sql Converts a natural language text into an SQL query. | plugin surf

Similar plugins