Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!csd4.csd.uwm.edu!mailrus!uflorida!gatech!emcard!wa4mei!nanovx!techwood!johnw From: johnw@techwood.UUCP (John Wheeler) Newsgroups: comp.databases Subject: Re: Informix Isql Protection Keywords: user-menu Message-ID: <463@techwood.UUCP> Date: 14 Aug 89 21:22:04 GMT References: <4266@uhccux.uhcc.hawaii.edu> Reply-To: johnw@techwood.UUCP (John Wheeler) Organization: Turner Entertainment Networks Library; Atlanta Lines: 22 In article <4266@uhccux.uhcc.hawaii.edu> you write: >Howzit, > > I am using Informix Isql on the unix for the first time. I have made a > database which lists grades for students in a class. Students are Rows in all > tables in the database. How do I limit access to just the row where the > the logged-in student's record is? I don't want student to access other > student records. You make a field in the database which contains the login name for that student. You then user the USER (which is a predefined variable, filled in at isql invocation) in a select statement as in select * from tablename where loginname matches USER and the only row that will be brought up is the one corresponding to that user's login name. -- Turner John Wheeler E N T E R T A I N M E N T ...!gatech!nanovx!techwood!johnw Networks Techwood Library * home of Superstation TBS * TNT * TBS Sports