Sql代码:这是什么意思

时间:2022-09-06 14:30:46

I am a beginner at at this stuff. Could you tell me what is happening at each step of the code below. Thank you.

我是这方面的初学者。你能告诉我下面代码的每一步发生了什么吗?谢谢。

Sql代码:这是什么意思

1 个解决方案

#1


0  

It's connecting to a database, and executing a query. 1. Creating a connection. 2. Opening that connection. 3. Executing the sql query, command. 4. Iterating through the results and printing the the values of the 'name' attribute.

它连接到数据库并执行查询。 1.创建连接。 2.打开那个连接。 3.执行sql query,命令。 4.迭代结果并打印'name'属性的值。

#1


0  

It's connecting to a database, and executing a query. 1. Creating a connection. 2. Opening that connection. 3. Executing the sql query, command. 4. Iterating through the results and printing the the values of the 'name' attribute.

它连接到数据库并执行查询。 1.创建连接。 2.打开那个连接。 3.执行sql query,命令。 4.迭代结果并打印'name'属性的值。