Can php query the results from a previous query?

前端 未结 5 909
梦如初夏
梦如初夏 2021-02-09 03:05

In some languages (ColdFusion comes to mind), you can run a query on the result set from a previous query. Is it possible to do something like that in php (with MySQL as the dat

5条回答
  •  故里飘歌
    2021-02-09 03:29

    Use the AND keyword?

    "SELECT * FROM animals WHERE type = 'fish' and name='trout'"
    

    Also, you can use LINQ for php http://phplinq.codeplex.com/

提交回复
热议问题