I currently have two String objects I check to find out if they are the same value:
String str1 = "red";
String str2 = "yellow";
if (str1.equals(str2)){
System.out.println("Equal");
}
else{
System.out.println("Not equal");
}Now how would I check 10 objects to find out if any of them...
Thanks it worked great.
I assume in the future if I have 14 fields in one table I will have to manually input each one:
alter table maintable
add constraint maintable_myNamehere unique (valdata, fid, fid2, fid3, anotherfld, another2, another3, another4, another5, another6, another7...
I would like to make sure there are no duplicate data entries in my Oracle 9i table (called MainTable) which has an Id field that is the primary key, ValData with a varchar data type, Fid and Fid2 are number data types.
Id ValData Fid Fid2
1 abc 34 2
2 efg 23 34
3...
I encrypted data using Cold Fusion (Web Server side language) for data entry into my Access 2003 database..
Now I will be using an Access Form to show the data. Anyway to decrypt Access 2003 data that was encrypted by Cold Fusion?
Sorry I meant to say I was using encrypt and not sure how to decrypt when users need to use an Access Form to view the Access Data that was ecrypt using Cold Fusion.
Please advise.
I have encrypted a field value using Cold Fusion (cfencrypt) on my form entries into an Access 2003 database.
How can I decrypt the value if I am using an Access Form to show the data?
Thanks, its now working with no Oracle database closing issues or leaks.
I had this in the OtherClass as my connection using the no arg constructor. I was told that this is a major blunder and not the way to work with JDBC:
public OtherClass()
{
//bad JDBC here?
connection = new...
I have a method that inserts data into my Oracle 9i database with no problems or Database closing issues:
public class MainClass
{
public PreparedStatement preparer;
public Connection connection;
public MainClass()
{
connection = new DbConnectionClass().getConnection();
}
public int...
I have a repeated resultset object that I use alot to execute a statement that fetches max id from a table.
I was wondering if I can put it in a method and call the method each time I need the max id?
The repeated part is:
Resultset rs = statement.executeQuery("select max(id) from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.