How to crea5e procedure???

  • I'm creating one table ps(phonenumber search)

    create table ps

    (

    name varchar(100),

    email varchar(100),

    mobile varchar(100),

    address varchar(100)

    )

    insert into (name,email,mobile,address) values('ra', email@removed ''1234567890''chennai');

    like I'm inserted 20 name in 'r'

    I want to create one procedure.for expecting o/p:

    (select name from ps where name like 'r%')

  • CREATE PROCEDURE ... (@param1 char(1))

    AS

    SELECT name FROM ps WHERE LEFT(Name,1) = @param1

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply