| Index
» Projekty
» phpMyEdit
» Fórum
» Cannot Edit Data in VIEW |
 |
n4mrc
Založený: 13.08.2008
Príspevky: 1
Zaslal: 2008-08-13 23:32
Návrat hore
Odpovedať s citátom
|
I have searched the forum and google for this but have not found anything like my problem.
In my MySQL database I have created a view which is a combination of a few fields from 3 tables. In the view the 3 tables are joined on an ID field that contains the same 5 character code.
I can update fields in this view from the command line
| Kód: |
| UPDATE SCHEMA.VIEW SET YEAR = '2009' WHERE ID = 'A1234' |
and from a simple PHP script I wrote and it works however when I try to make the same change on the same field with PME I get the following error:
MySQL error 1393
Can not modify more than one base table through a join view 'SCHEMA.VIEWNAME'
Why would PME not treat this as if it were a table just like everything else does? When I use just about any other means of updating this view it works. PME is the only one giving me an error. Does PME check to see if it is accessing a view rather than a table? Is there a way I can make PME think that my view is a regular table? The view works exactly like I want it to. I just can't get PME to edit it.
Thanks
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|