Hi,
I use OpenOffice 3.3 in a windows XP system, a XAMPP with MySQL 5.5.8 and ODBC 3.51 installation (as BASE database access mode ODBC or ODBC MySQL).
When I define a VIEW as a virtual table in MySQL with all rights for the user, I am able to see the fields of the view in the tables of BASE, I am able to send an INSERT command in the SQL field of the BASE frontend to add a new field but I could NOT find a way to add a value through the BASE frontend table directly. The status of the table remains as view only.
Any suggestions to overcome this trouble ?
the openoffice forum says that BASE sets autonomously the access to any VIEW always to read-only, which is difficult to understand. Any comments or differences in libreoffice BASE ....
andy
🙏 Bitte helfen Sie uns das LibreOffice Forum zu erhalten. 🙏
Ihre Spende wird für die Deckung der laufenden Kosten sowie den Erhalt und Ausbau 🌱 des LibreOffice Forums verwendet.
🍀 Wir hoffen auf Ihre Unterstützung - vielen Dank!🍀
>> Dank Ihrer Unterstützung -> Keine Werbung für alle registrierten LibreOffice-Forum User! <<
🤗 Als Dankeschön werden Sie im Forum als LO-SUPPORTER gekennzeichnet. 🤗
BASE as frontend for MySQL views
-
- ! Supporter - Spende !
- Beiträge: 25
- Registriert: Fr 8. Apr 2011, 12:10
- Wohnort: Bielefeld
- Kontaktdaten:
Re: BASE as frontend for MySQL views
Hi Andy,
this is a feature, not a failure. A VIEW is nothing more than a SELECT-statement and produces a virtual table, the result set. How should an insert work on a result-set? You have to insert your new data into the table.
Greetings
Andreas
this is a feature, not a failure. A VIEW is nothing more than a SELECT-statement and produces a virtual table, the result set. How should an insert work on a result-set? You have to insert your new data into the table.
Greetings
Andreas
LO 7.5.1.2
iMac Retina 5K, 27", 3,3 GHz 6-Core i5, 64 GB /MacBook Pro, 8 GB RAM, Mac OS X 13.2.1 (22D68)
MySQL 8.0.28
iMac Retina 5K, 27", 3,3 GHz 6-Core i5, 64 GB /MacBook Pro, 8 GB RAM, Mac OS X 13.2.1 (22D68)
MySQL 8.0.28
Re: BASE as frontend for MySQL views
Hi Andreas,
if you check the MySQL (and many other SQL) databases you will see that VIEWS can be treated like regular tables although they are virtual tables. I use these type of table to regulate access to the tables behind instead of column access roles because you can define VIEW access roles like regular tables.
you can define a VIEW and try to set an INSERT via direct BASE SQL command - it works well
if you check the MySQL (and many other SQL) databases you will see that VIEWS can be treated like regular tables although they are virtual tables. I use these type of table to regulate access to the tables behind instead of column access roles because you can define VIEW access roles like regular tables.
you can define a VIEW and try to set an INSERT via direct BASE SQL command - it works well
-
- ! Supporter - Spende !
- Beiträge: 25
- Registriert: Fr 8. Apr 2011, 12:10
- Wohnort: Bielefeld
- Kontaktdaten:
Re: BASE as frontend for MySQL views
Hi,
ok, I see, but if the VIEW is a view across some related tables you have to define the relationship as ... on delete | insert cascade; if 'no action' is defined no action will proceed. Have a look at
http://dev.mysql.com/doc/refman/5.5/en/ ... aints.html
Greetings
Andreas
ok, I see, but if the VIEW is a view across some related tables you have to define the relationship as ... on delete | insert cascade; if 'no action' is defined no action will proceed. Have a look at
http://dev.mysql.com/doc/refman/5.5/en/ ... aints.html
Greetings
Andreas
LO 7.5.1.2
iMac Retina 5K, 27", 3,3 GHz 6-Core i5, 64 GB /MacBook Pro, 8 GB RAM, Mac OS X 13.2.1 (22D68)
MySQL 8.0.28
iMac Retina 5K, 27", 3,3 GHz 6-Core i5, 64 GB /MacBook Pro, 8 GB RAM, Mac OS X 13.2.1 (22D68)
MySQL 8.0.28
Re: BASE as frontend for MySQL views
Hi,
the read-only setting occurs also if you do not use complex JOIN request to form the VIEW.
the read-only setting occurs also if you do not use complex JOIN request to form the VIEW.
An alle, die das LibreOffice-Forum gern nutzen und unterstützen wollen:
Bitte helfen Sie uns mit 7 Euro pro Monat.
Durch Ihren Beitrag tragen Sie dazu bei, unsere laufenden Kosten für die kommenden Monate zu decken.
Unkompliziert per Kreditkarte oder PayPal.
Als ein kleines Dankeschön werden Sie im LO-Forum als SUPPORTER gekennzeichnet.