🍀 Das LibreOffice Forum braucht HEUTE Ihre Hilfe! 🍀
❤️ Spenden Sie jetzt und sichern Sie die Zukunft unseres LibreOffice-Forums ❤️
Ihre Spende hilft, die Community offen, werbefrei (bei Registrierung) und lebendig zu halten. Vielen lieben Dank!

🙏 DANKE >> << DANKE 🙏

>> Das LibreOffice-Forum lebt von Ihnen – und von vielen Experten, die freiwillig und kostenlos ihr Wissen teilen.<<
Als Dankeschön werden Sie im Forum als LO-SUPPORTER gekennzeichnet.

BASE as frontend for MySQL views

Base ermöglicht es Ihnen, Ihre Daten in einer Datenbank direkt mit LibreOffice zu bearbeiten.
Antworten
akage
Beiträge: 3
Registriert: Do 7. Apr 2011, 09:35

BASE as frontend for MySQL views

Beitrag von akage » Do 7. Apr 2011, 09:41

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

AndreasJBittner
! Supporter - Spende !
Beiträge: 25
Registriert: Fr 8. Apr 2011, 12:10
Wohnort: Bielefeld
Kontaktdaten:

Re: BASE as frontend for MySQL views

Beitrag von AndreasJBittner » Fr 8. Apr 2011, 12:14

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
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

akage
Beiträge: 3
Registriert: Do 7. Apr 2011, 09:35

Re: BASE as frontend for MySQL views

Beitrag von akage » Fr 8. Apr 2011, 17:35

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

AndreasJBittner
! Supporter - Spende !
Beiträge: 25
Registriert: Fr 8. Apr 2011, 12:10
Wohnort: Bielefeld
Kontaktdaten:

Re: BASE as frontend for MySQL views

Beitrag von AndreasJBittner » Fr 8. Apr 2011, 17:58

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
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

akage
Beiträge: 3
Registriert: Do 7. Apr 2011, 09:35

Re: BASE as frontend for MySQL views

Beitrag von akage » Sa 9. Apr 2011, 00:08

Hi,
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:
Bitte beteiligen Sie sich mit 7 Euro pro Monat und helfen uns bei unserem Budget für das laufende.
Einfach per Kreditkarte oder PayPal. Als Dankeschön werden Sie im Forum als LO-SUPPORTER gekennzeichnet.



❤️ Vielen lieben Dank für Ihre Unterstützung ❤️

Antworten