aadham 1/14/2023 | |
Please provide more details on what exactly you're trying to achieve. |
admin 1/15/2023 | |
I can tell that DB::excu() is incorrect and the proper syntax is DB::exec(). |
I
|
IKA9 author 1/15/2023 |
@aadham im trying to creat a temporary table |
admin 1/15/2023 | |
Creating a temporary table is only part of the process. Okay, you created it, what's next? You need to explain the whole thing, every single detail. |
I
|
IKA9 author 1/15/2023 |
that is all as i've tried it but not successed . but through workbench is works fine . |
fhumanes 1/16/2023 | |
Hello, I don't know if you have found how temporary tables works. https://dev.mysql.com/doc/refman/8.0/en/create-temporary-table.html A TEMPORARY table is visible only within the current session, and is dropped automatically when the session is closed. This means that two different sessions can use the same temporary table name without conflicting with each other or with an existing non-TEMPORARY table of the same name. (The existing table is hidden until the temporary table is dropped.) On the web and mysql, every time a request to the server comes you create a new instance/session of the data server. This way of working produces that from one execution to the next, the temporary table does not exist. I think this your problem. Regards, |
aadham 1/16/2023 | |
Hi IKA9, Please provide the exact code here with screen shots of the error message(s), so that we may be able to help you solve the issue. Good luck! |
I
|
IKA9 author 1/17/2023 |
@fhumanes and as i mentioned before post my code was . as following : $query : ("CREATE TEMPORARY TABLE details AS
|