Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Error when deleting a record when source table is mysql view

phpMyEdit General     Error when deleting a record when source table is mysql view
Odoslať novú tému   Odpovedať na tému    
 
blueboxbro     Založený: 06.02.2008   Príspevky: 1  
Príspevok Zaslal: 2008-02-06 15:26
Návrat hore  Odpovedať s citátom     

Ok I created a query in mysql and am able to execute it . The results show the records I am looking for. I can select a record or records and delete them without problem. I then saved the mysql query as a "view" in mysql.
I ran the phpMyEditSetup.php and use the mysql view I created as the source table. When I run the php script that is created through a browser the correct results are displayed. When I select a record and try and delete it I get an error which states:

"MySQL error 1288. The target table <mysql view name> of the DELETE is not updatable."

Any idea why I cant delete records when the source table is "mysql view" as opposed to a "mysql table"?
Is there a way around this?
P.S. The query(view) is fairly complex but only references one table.

 
exio82     Založený: 20.09.2007   Príspevky: 6  
Príspevok Zaslal: 2008-02-14 12:54
Návrat hore  Odpovedať s citátom     

This is a mysql issue not phpmyedit one.

I also tried to use views instead of tables and I can strongly suggest to not use them.
They are supported only by mysql 5 and above (not 4) and have lots of restrictions.

Have a look here:
http://dev.mysql.com/doc/refman/5.0/en/view-restrictions.html

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov