这句话是什么意思,
存储过程:
create procedure findshop(shopname varchar(32),cgy varchar(16))
begin
delcare uid bigint unsigned;
select name ,category,content,userid into uid from myshop where name=shopname;
select *from product where userid=uid;
commit;
end;
不知道哪里出错了。

解决方案 »

  1.   

    select userid into uid from myshop where name=shopname;
    OR
    select name ,category,content,userid into F1,F2,F3,uid from myshop where name=shopname;
      

  2.   

    select name ,category,content,userid into uid from myshop where name=shopname; 
    改成select userid into uid from myshop where name=shopname; 
      

  3.   

    我的原意是要搜出两个结果,把myshop表和product表中的数据都搜索出来,那应该怎么改
      

  4.   

    我想在程序端调用这个存储过程,然后把select name ,category,content,userid into uid from myshop where name=shopname;
    select *from product where userid=uid; 
    这两个语句的搜索出来的结果显示出来
      

  5.   

    如果是在MYSQL中
    select userid into uid from myshop where name=shopname;
    select * from product where userid=uid;
    就可以了
      

  6.   

    myshop里面的结果搜索不出啊!我用的是mysql5.1版本
      

  7.   

    检查myshop表中是否有满足条件的记录
    检查shopname中的内容
      

  8.   

    你想实现什么功能, (不要高估你的汉语表达能力或者我的汉语理解能力)
       建议你列出你的表结构,并提供测试数据以及基于这些测试数据的所对应正确结果。
       参考一下这个贴子的提问方式http://topic.csdn.net/u/20091130/20/8343ee6a-417c-4c2d-9415-fa46604a00cf.html
       
       1. 你的 create table xxx .. 语句
       2. 你的 insert into xxx ... 语句
       3. 结果是什么样,(并给以简单的算法描述)
       4. 你用的数据库名称和版本(经常有人在MS SQL server版问 MySQL)
       
       这样想帮你的人可以直接搭建和你相同的环境,并在给出方案前进行测试,避免文字描述理解上的误差。   
      

  9.   

    ccreate table myshop(
    shopid bigint unsigned not null auto_increment,
    name varchar(32) not null,
    category varchar(16) not null,
    content varchar(400) not null,
    userid bigint unsigned not null,
    primary key(shopid),
    unique key name(name),
    unique key userid(userid)
    )engine=InnoDB auto_increment=0 default charset=utf-8;create table product(
    pid bigint unsigned not null auto_increment,
    name varchar(32) not null,
    userid bigint unsigned not null,
    imagepath varchar(400) not null,
    intro varchar(200) not null,
    number vachar(3) not null,
    upload_time date not null,
    price varchar(7) not null,
    primary key(pid),
    unique key name(name),
    key userid (userid)
    )engine=InnoDB auto_increment=0 default charset=utf-8
      

  10.   

    对应结果是只搜索出了product表的信息,shop表的信息搜索不出来,测试数据随便输的