PHP 记录集可用吗?
通过使用 Java 和 Visual Basic,我发现我可以使用 ResultSet (Java) 或 RecordSet (VB) 来完全管理数据库。 我的意思是,如果我使用 SELECT 查询从数据库读取表,我可以更新它而无需进行新的 UPDATE 或 INSERT INTO 查询。 可以用 PHP 来做吗?
先感谢您。
working both with Java and Visual Basic, I see that I can completely manage databases with ResultSet (Java) or RecordSet (V.B.).
I mean, if I read a table from a db with a SELECT query, I can update it without make a new UPDATE or INSERT INTO query.
Is it possible to do it with PHP?
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果我正确理解你的问题,PHP 核心不会有你想要的,但许多基于 PHP 构建的框架会有,例如 http://codeigniter.com/user_guide/database/active_record.html 或 http://www.doctrine-project.org/。
If I understand your question correctly, PHP core doesn't have won't have want you want, but many frameworks built on PHP will, such as http://codeigniter.com/user_guide/database/active_record.html or http://www.doctrine-project.org/.
据我所知,这对我来说似乎更合乎逻辑(即使不那么简单)。
Not to my knowledge and it seems more logical (even if less simple) for me.
不,据我所知,
这是不可能的,更精确,我怀疑你可以用 mysql 来做到这一点,我确信虽然不能记住他们的名字 atm,但还有其他解决方案可以满足你的需求,但 mysql 是一个 nono
No it's not possible as far as I know
to be more precis i doubt you can do it with mysql, im sure though can't remeber their names atm but there are other solutions that might fill your needs, but mysql is a nono