Adding only one value to the table in sql

前端 未结 6 1123
别跟我提以往
别跟我提以往 2020-12-31 05:26

I have a table named student which consists of (rollno, name, sem, branch)

If I want to INSERT only one value (i.e only name h

6条回答
  •  一向
    一向 (楼主)
    2020-12-31 05:48

    insert into student (name)
    select 'some name'
    

    or

    insert into student (name)
    values ('some name')
    

提交回复
热议问题