Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by avihaimar

  1. avihaimar

    For how long transaction can be open?

    Hey, I want that my client will open a transaction for a non limit time. Can i confiugre the MySQl to not close open transaction due to timeout? Thank you
  2. avihaimar

    How to implement a transaction

    Thank you. I need to support in update, delete... and i can lock this records.
  3. avihaimar

    How to implement a transaction

    The client change the data but i have to persist those changes to the DB for the following reasons: 1. to get an id in oder to have the ability to manage those objects and the references between objects. 2. in order to not lost those changes in case that the server crash. 3. some data changes...
  4. avihaimar

    How to implement a transaction

    Hey, I want to implement transaction mechanism. Think about world document each change saved in a temporal workspace and at the end the user can press on save and the changes apply to the original document or close and the document will not be changed. My client can do a lot of changes to the...
  5. avihaimar

    Track changes, Audit and rollback

    Hey, does any one can have me some references or advices on how to control on changes in the DB, audit them and have the ability to rollback. My application is in Java Thank you
  6. avihaimar

    associative table or a directly foreign key,what is better?

    Hey, I am working with hibernate and i want to map my Objects to tables structre. There is two ways to map relation: 1. with associative table 2. directly foreign key (i mean without associative table) Can you please explain what are the advantages for each way? Thank you
  7. avihaimar

    How to limit the sql to reurn only 1 result

    I need a generic solution. currently i solved it by setting stmt.setMaxRows(1), but i read that it dosnt gurrenty better performance .
  8. avihaimar

    How to limit the sql to reurn only 1 result

    Hey, My application give the user the ability to create a virtual view. The user insert a query - "selcet product_id from product" and we show him the structre of this virtual view. In order to get the column types i run this query than get the "ResultSetMetaData" ( by getMetaData() ) and...
  9. avihaimar

    Quote on numeric field in DB2???

    You are funny. :) So, what is your suggetion?
  10. avihaimar

    Quote on numeric field in DB2???

    Thank you, but all i need is only to extract those records.
  11. avihaimar

    Quote on numeric field in DB2???

    i try this: Select * FROM WCSADM.CATENTRY WHERE CHAR(CATENTRY_ID)='1000000'; and it work for me. what about performance? what about other DB? what about timestamp? what you think about using in PrepareStatement (and using setObject ) Thank you, You are great
  12. avihaimar

    Quote on numeric field in DB2???

    Thank you guys. The business case: I have table that contain chages that where done on tables. So i have : table_name,column_name,column_value once in a while there is a thread that extract all this changes. it prepare the following sql - for each table: select * from table_name where...
  13. avihaimar

    Quote on numeric field in DB2???

    I am looking for a generic solution. Somthing that will support in all variables (without know their type) and for all data base. Please, if you dont know an answer dont say - so dont do this. let other people that know some tricks to help!
  14. avihaimar

    Quote on numeric field in DB2???

    This is the problem! i dont know the column type . i just append column name with value. in most data bases its ok to wrap in singe quote value of numeric type, but DB2 dosnt allow it.
  15. avihaimar

    Quote on numeric field in DB2???

    Hey, I am building a dynamic query. i create a select on some table fields and i append the where clause like this - ... Column_A = 'value' AND COLUMN_B = 'value' ... i dont know the table and the columns types from ahead, so i wrap the value with single quote. Almost all Data Base support...

Part and Inventory Search

Back
Top