首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

怎么获取字段值-初学

2012-09-12 
如何获取字段值-初学SQL codeselect id, tb_idfrom `tb_sys_table_col` where tb_nametb_ceshiand col_

如何获取字段值-初学

SQL code
select id  , tb_id  from `tb_sys_table_col` where tb_name='tb_ceshi'  and col_name='增加';----如何同时获取id  , tb_id 两个字段值 ,不要使用游标


[解决办法]
你这不是可以了吗 ? 你说的获取是指在哪里获取?
[解决办法]
select id , tb_id into @aid,@tbid from `tb_sys_table_col` where tb_name='tb_ceshi' and col_name='增加';

热点排行