After establishing a database connection, create a simple string for your INSERT statement.
在建立数据库连接之后,为insert语句创建一个简单的字符串。
We define the SQL statement as a string variable for two reasons.
因为以下两个原因,我们将sql语句定义成了一个字符串变量。
Evaluate a string as if it were a source code statement at runtime.
评估字符串仿佛那是一个源代码在运行时的发言。
Evaluate a string as if it were a source code statement at runtime.
评估字符串仿佛那是一个源代码在运行时的发言。
应用推荐