Type this code for creating database in MySql
create database adeel;
Type this code for using by default database.
use adeel;
create table TestAdeel (
id int,
FirstName varchar(255),
LastName varchar(255),
FatherName varchar(255),
Address varchar(255)
);
insert into testadeel (id, FirstName, LastName, FatherName, Address)
values
(1, ‘Adeel’, ‘Ahmad’, ‘Khalil’, ‘Lahore’);
If you want to put data in all columns then no need to mention all columns name. As you can see below.
insert into testadeel
values
(2, ‘Ade’, ‘Ahad’, ‘Khala’, ‘Lahore’),
(3, ‘Adee’, ‘Ahad’, ‘Khala’, ‘Lahore’);
insert into testadeel (FirstName)
values
(‘Ade’),
(‘Lahore’);
Select command is used to select and show the table data.
Select all:
SELECT * FROM tableName;
column is selected which you want to see and can call from specific column.
select FName from class where id=’2′;
For Table
DROP table tableName;
for database
DROP database databaseName;
This question can be asked in multiple ways! First question is the main point which will be expalined and all questions will be answered by answering the first question. Let me first raise all questions related to this task. how to connect ptcl modem to ptcl modem how to connect ptcl modem to router how…
السر کیا ہوتا ہے ؟السر کی علامات اور اس کا علاج السر کیا چیز ہے یہ کیسے پیدا ہوتا ہے؟ السر معدے کی نالی میں انتوں میں اور معدے میں زخم ہو جائیں تو اس کو ہر کوئی اپنی زبان میں السر بولتا ہے۔زخم ہونا کوئی بڑی بات نہیں ہوتی لیکن اگراس کا علاج نہ…
Upwork is a platform that allows businesses and independent professionals to connect and collaborate remotely. It is a website that provides a space for freelancers to offer their services and for clients to find and hire freelancers for various projects. Freelancers can use Upwork to find work in a variety of fields, including writing, design,…
In the expansive world of laptops, finding the perfect blend of performance and affordability is a pursuit many embark upon. As we embrace 2024, the sub-$1000 range becomes the sweet spot for users seeking premium features without breaking the bank. Explore our guide to the top 5 laptops available on Amazon, meticulously selected to provide…
Reach in German on Done Bases in 35 to 40 days! There are many agent in every country who claim that they can send you another country on done bases by spending a great amount of money. Some claims that they can send on donkey bases. Which is insane. Getting Pakistan to Europe countries visa…
Zong in Pakistan WorldCup 2023 for Free Tou can watch live world cup 2023 online free streaming, It is so amazing the zong is providing this service free. In previous years daraz app started this feature and this time amazing free online watching of world cup all matches using there zong app. But wait As…