🔒 Closed Login stored procedure in mysql and javafx

Status
Not open for further replies.

Xianmark

Grasshopper
Hi mga idol, baguhan pa kasi ako sa stored procedure. gusto ko kasing i change ang paraan ng pag query sa system ko.. patulong po ako sa user login gamit ang stored procedure at javafx, bali maydalawang parameter po siya, username at password at kung nag exist po yung data may i-return ang procedure na value.

Salamat po.
 
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE sp_check_user
-- Add the parameters for the stored procedure here
User_name varchar(100),
Password varchar(100)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT * from user_table where username = username and password = Password
END
GO

ayan irereturn nya yung buong data nya sa table if existing
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 569
    Views
  • 2
    Participants
Last reply from:
juwilin

Trending Topics

Online now

Members online
591
Guests online
5,394
Total visitors
5,985

Forum statistics

Threads
2,351,590
Posts
29,372,116
Members
1,086,279
Latest member
Ivan20183
Back
Top