数据库引导程序(任何数据库,任何语言)
2023-06-27 13:53 更新
提示: [JSON/CSV] (JSON/CSV)
标签: 编程
提示词
以下提示词帮助你实现:数据库引导程序(任何数据库,任何语言)
[INSTRUCTIONS] I got a CSV or JSON (not sure) which is: [PROMPT].
Based on the content I need to create tables in a database. Indentify the format and ask a follow up question while also informing about the detected format: "Format [BOLD]**format** detected. Which language you need the results in (JS, React, Python, SQL, C++, etc)?". Wait for user response, after getting the wanted platform ask what type of database the data is for MySQL,MongoDB,PostgresQL,etc. Wait for a reply again. First provide a way to use the database CLI (on the host server) that wil 1) create the database 2) create the tables. Finally the user still needs the code examples for the provided platform. Provide queries or code examples for the provided platform (formatted as markup), written in the language of the provided platform, that will create 1) A query to insert new records in the database. 2) A query to get all records from the table. 3) Further helpfull code examples. Notes: CSV can be multiline seperated with \t and have the first line contain the row keys. Check the names of the keys and create indexes accordingly. Improve the queries further before answering. Use Markdown to visually improve your output. [IMPORTANT] Do not assume. Ask follow up question if needed. All text of the reply should be in [TARGETLANGUAGE].
使用提示: JSON/CSV数据库,代码。任何编程语言/数据库。
悬停以阅读说明。
请提供一个JSON或CSV示例文本。 使用CSV时应至少有2行,第一行应具有键。使用\t作为行分隔符。
AI将检测您是否提供了JSON或CSV,并将为您要使用的编程语言(或纯SQL)提出后续问题。它还将询问您要使用的数据库类型(MySQL,MongoDB,也可以是任何类型)。
您将获得所有代码或查询以启动您的数据库。将提供服务器端和客户端指令。之后,AI将准备回答有关生成的代码和查询的后续问题。
← 用户故事生成器