如何获取字段值-初学

wangxuelid 2012-09-07 09:32:11

select id , tb_id from `tb_sys_table_col` where tb_name='tb_ceshi' and col_name='增加';

----如何同时获取id , tb_id 两个字段值 ,不要使用游标
...全文
203 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ACMAIN_CHM 2012-09-07
  • 打赏
  • 举报
回复
select id into @x , tb_id into @y from `tb_sys_table_col` where tb_name='tb_ceshi' and col_name='增加'
wwwwb 2012-09-07
  • 打赏
  • 举报
回复
select id , tb_id into @aid,@tbid from `tb_sys_table_col` where tb_name='tb_ceshi' and col_name='增加';
wangxuelid 2012-09-07
  • 打赏
  • 举报
回复
id , tb_id :付给变量。谢谢。。
一起混吧 2012-09-07
  • 打赏
  • 举报
回复
你这不是可以了吗 ? 你说的获取是指在哪里获取?
wangxuelid 2012-09-07
  • 打赏
  • 举报
回复

----谢谢 2012年9月7日9:38:26

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧