Skip to content

In This Project Two Main Part Admin & user. Admin Can Add Route,Add Train User Can BookTicket,CancelTicket,ViewTicket,PrintTicket And Last All Store In Database.

Notifications You must be signed in to change notification settings

hbsolanki/RailwaySystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Railway System

This is Railway System Project using java

Database :

create database railway;
USE railway;




CREATE TABLE user(username varchar(20),password varchar(20));

CREATE TABLE admin(id varchar(20),password varchar(20));

CREATE TABLE allroute(rid INT);
CREATE TABLE alltrain(tno INT);

CREATE table ticket(username varchar(50),ticketno int,price int,personlist varchar(16000),phone varchar(20),trainnumber int,trainname varchar(50),source varchar(50),destiniy varchar(50),stime varchar(20),dtime varchar(20),ttype varchar(10));



-- show all details from table
select * from user;
select * from admin;
select * from allroute;
select * from r2;
update r2 set src='vg' where km=232;
select * from alltrain;
select * from t9216;
select * from ticket;


-- delete table
drop table admin;
drop table ticket;
drop table r1;

-- delete all data from table
truncate table admin;
truncate table ticket;
truncate table allroute;

RailwaySystem

About

In This Project Two Main Part Admin & user. Admin Can Add Route,Add Train User Can BookTicket,CancelTicket,ViewTicket,PrintTicket And Last All Store In Database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages