0
id     status
1        0
2        0
3        0
4        0
5        0
.
.
100      0

This should be the format. i need to create id and status column putting 1 to 100 in id and zero in status. i would like to know is there any way i can create it with query or i have to do it manually

David דודו Markovitz
  • 42,900
  • 6
  • 64
  • 88
  • 3
    Possible duplicate of [Generating a range of numbers in MySQL](http://stackoverflow.com/questions/186756/generating-a-range-of-numbers-in-mysql) – Kumar_Vikas Dec 03 '16 at 09:58

1 Answers1

0
select  @i:=@i+1 as id
       ,0        as status

from    mysql.help_keyword,(select @i:=0) t

limit   100
;
David דודו Markovitz
  • 42,900
  • 6
  • 64
  • 88