如何在mysql中以编程方式创建数据库? [英] How does one create a database programmatically in mysql?
本文介绍了如何在mysql中以编程方式创建数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在mysql中以编程方式创建数据库
How does one create a database programmatically in mysql
推荐答案
与使用设计器创建数据库的方式完全相同。 SQL Server的一个规范是使用SQL命令进行管理,包括设置新数据库,构建表,索引,......等等。 SQL Server通常使用SQL来管理。
因此,您首先要执行一个精心设计的创建数据库
[ ^ ]命令。
The exact same way you create it using a designer. One of the specifications for an SQL Server is that it is managed using SQL commands, including setting up a new database, constructing tables, indexing, ... everything. SQL Servers are normally managed using, well, SQL.
So, you start with executing a properly craftedCREATE DATABASE
[^] command.
这篇关于如何在mysql中以编程方式创建数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文