このクエリでどのように連結しますか?
SQL
SELECT
eventscheduling.eventID,
event.eventName,
event.description,
sponsorCLUB.Organization,
department.Dname,
eventscheduling.smonth,
eventscheduling.sdate,
eventscheduling.syear,
eventscheduling.tHour,
eventscheduling.tMinute,
eventscheduling.tAmPm,
eventscheduling.venue,
eventscheduling.representative
FROM eventscheduling, event, department, sponsorCLUB
WHERE event.eventID=eventscheduling.eventID and
sponsorCLUB.sponsorID=eventscheduling.sponsorID and
department.DeptID=sponsorCLUB.DeptID and
eventscheduling.eventID='"+txtsearch.getText()+"'";
コード
String sql="select eventscheduling.eventID, event.eventName, event.description,
sponsorCLUB.Organization, department.Dname, eventscheduling.smonth, eventscheduling.sdate,
eventscheduling.syear, eventscheduling.tHour, eventscheduling.tMinute, eventscheduling.tAmPm,
eventscheduling.venue, eventscheduling.representative from eventscheduling, event, department,
sponsorCLUB where event.eventID=eventscheduling.eventID and
sponsorCLUB.sponsorID=eventscheduling.sponsorID and department.DeptID=sponsorCLUB.DeptID and
eventscheduling.eventID='"+txtsearch.getText()+"'";
とを Date に結合したいと思いsmonth
ます。sdate
syear