从MSSQL检索单行到GUI窗口 [英] Retrieving the single row from MSSQL into the GUI window

查看:66
本文介绍了从MSSQL检索单行到GUI窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,我正在荡秋千的java上做项目,并使用dbase作为MSSQL.我想知道的是我已经创建了一个名称,文本字段,日历(用于出生选择),该名称显示在GUI窗口中.

然后我在MSSQL中创建了一个Patient name的表,DOBirth字段.这里假设存在三到四个名字.现在我已经使用我编写的jdbc-odbc单独程序在GUI窗口中显示了一个表.现在,我想要的是仅显示患者姓名(标签),日历和搜索按钮.通过在给出姓名和出生日期后单击搜索,它只需要根据那里的患者详细信息显示该如何实现.先生.

请在这方面帮助我.

谢谢&关于Pradeep CBZ

Hello sir, I am doing project on java thats on swings,and using the dbase as MSSQL. what i want to know is i had created a name ,textfield ,calender(for DObirth selection), this is displayed in GUI window.

Then i had created a table of Patient name ,DOBirth fields in MSSQL.Here assume three to four names are present.Has of now i had dispalyed a table in GUI window using jdbc-odbc separate program i had written. Now what i want is after displaying only Patient name (label),and calender and search button,.By clicking the search after giving name and DOBirth, it has to display only according there respective Patient details how to achieve it sir.

Plz help me in this regard.

Thanks & Regards Pradeep CBZ

推荐答案

,您需要向数据库询问特定数据.

MySQL教程查询 [在MySQL中使用JDBC,入门 [
you need to ask your database for the specific data.

MySQL Tutorial Queries[^]

Here is a Tutorial on how to ask the database in Java:
Using JDBC with MySQL, Getting Started[^]


这篇关于从MSSQL检索单行到GUI窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆