Click to See Complete Forum and Search --> : Jdbc
Ishaibin
September 23rd, 2003, 09:54 PM
If I have an application that can access tables , but i want to block some of the columns in certain tables , so lets say if i have 4 columns : name, address, phone, email , only the name and email will be displayed .
how can i achive that ?
stephen_wee
September 24th, 2003, 08:40 PM
Hi
Are you asking about JDBC or are you asking about selecting the respective columns from a table?
If it is the latter, just add the columns that you wish to extract the values from in the SQL statement:
Select name, email from table
Ishaibin
September 25th, 2003, 11:03 AM
ofcourse ,
but this is the spesific case.
My question is if there is a way that some columns within a table will be marked as accessable only to authorized .
so if my software tries to acess it , and the company doesnt want, it cant.
is that possible ?
ArchAngel
September 25th, 2003, 06:32 PM
Depends on the specific database you're using, but most database system will allow you to GRANT different USER accounts access to different tables, fields etc.
Check the DDL of the tables.
Ishaibin
September 25th, 2003, 09:14 PM
Can you explain me abit more ?
and what are the JDBC classes that handles it ?
so i could read the documentation .
ArchAngel
September 26th, 2003, 06:54 AM
It's not to do with JDBC - it's to do with the definition of the tables themselves using SQL. You need to read the documentation supplied with your database. For example, if you are using MySQL:
http://www.mysql.com/doc/en/GRANT.html
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.