🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #433

Re: Multiple users in mysql

#433
From: Reynold M. de Guzman
Date: Fri, 12 Oct 2001 14:11
41 lines
2131 bytes
On Thu, 11 Oct 2001 11:48:00 -0300, "Landim" <landim2@terra.com.br>
wrote:
>
>All you have to do is insert if there is name, right?  So the idea is...
>
>insert on scratchpad (myrow) values (myvalues) where (select * from
>scratchpad where admin = "var");
>
>                                                                        BUT
>insert does not accept where ...
>
>so you can make a transaction or try mask(filter,restriction) options of the
>row you are using...
>
>
>landim2@terra.com.br
>
>

I can use the filters, and programatically allow inserts, edits,
deletes from withing the program using sql and filters and such but I
was wondering if someone with a "real" login/password AND has or built
their own database tool can access the database and insert/edit/delete
records of other rows that have a different admin name.

I'm thinking this has to be done at database level.  Do you know if
this can be done with mysql?

Specifically:
User name "test1" should be able to insert/edit/delete records with
his user name in the admin field.

User name "test2" should not be able to do anything to the rows with
"test1" in the admin field.

Reynold


---
Reynold M. de Guzman
deguzman@offworldcolony.com
Technical Details
Message-ID: <3bc6f897.31897687@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews
References: <3bc45f29.26884224@newsgroups.borland.com> <3bc5afa9_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,6029300822978c9b
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-10-12 07:39:41 PST
From: deguzman@offworldcolony.com (Reynold M. de Guzman)
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: Re: Multiple users in mysql
Date: Fri, 12 Oct 2001 14:11:48 GMT
Message-ID: <3bc6f897.31897687@newsgroups.borland.com>
References: <3bc45f29.26884224@newsgroups.borland.com> <3bc5afa9_2@dnews>
X-Newsreader: Forte Agent 1.5/32.452
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 63.253.122.19
X-Trace: dnews 1002895952 63.253.122.19 (12 Oct 2001 07:12:32 -0700)
Lines: 41
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews