MySQL INSERT from a SELECT with PDO

前端 未结 2 1992
再見小時候
再見小時候 2020-12-12 06:16

I have a strange behaviour using PHP PDO for a INSERT from a SELECT query. Testing the query directly in MySQL it works well, I get my row inserted :

INSERT          


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 06:41

    Not that it is the probable problem, but you put a username in the password field in your code. In your query you insert the aeskey there. It is the only difference I can spot.

提交回复
热议问题