问题描述
我想从JTextfield中的两个不同的表和显示中追加两个值。
我有一个查询文本字段和另一个引用文本字段。所以当我在询问中加1时,引用变为1_1。这里1是查询,第2 1是报价..如果我想通过第3次查询那么报价应该变成3_2并且这3_2显示在报价文本字段中...第3次查询和第2次报价...第6次查询报价变为6_3 ...所以报价是自动增量数,但报价和enuiry是两个不同的表..所以如何附加这些值?我必须使用哪个查询?
我尝试过:
在这里,我使用密钥释放的行动进行查询
请给出一些技巧。
I want to append two values taking from two different tables and displays in JTextfield.
I have one enquiry textfield and another quotation textfield. so when I put 1 in enquiry, quotation become 1_1. Here 1 is enquiry and 2nd 1 is quotation..if I want to pass 3rd enquiry then quotation should become 3_2 and this 3_2 displays in quotation textfield...3rd for enquiry and 2nd number for quotation ...for 6th enquiry quotation become 6_3...so quotation is auto increment number but quotation and enuiry are two different tables.. so how to append these values? and which query I have to used ?
What I have tried:
Here I used key released action for enquiry
Please give some tricks.
推荐答案
这篇关于在java中追加值但从数据库中检索值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!