我有2张桌子的桌子没有1个盒子没有桌子的桌子没有2个Allbox我想要选择 [英] I have 2 table table no 1 boxno table no 2 allbox i want like select

查看:130
本文介绍了我有2张桌子的桌子没有1个盒子没有桌子的桌子没有2个Allbox我想要选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

表一(boxno)的列名称(EDSboxes)值如1234
表拖(allbox)具有列名(IDbox)值,例如CI,1234,DFS,24/11/2011,

我需要做出选择才能给我与列之间相同的值

选择*
从boxno
在哪里的EDS框
(从allbox中选择IDbox,其中allbox.IDbox喜欢* boxno.EDSboxes *);

我想在开头和结尾使用类型*在拖曳表中给我相同的值

table one (boxno) have a column name ( EDSboxes ) value like 1234
table tow (allbox) have a column name (IDbox ) value Like CI,1234,DFS,24/11/2011,

i need make select to give me the like value between to column

SELECT *
FROM boxno
WHERE EDSboxes in
(SELECT IDbox FROM allbox where allbox.IDbox Like * boxno.EDSboxes * );

i want typ * on the start and end to give me the same value in the tow table

推荐答案

我认为您的数据布局是一场灾难,所以最好可以做的就是使用LIKE关键字.最好修复您的数据
I think your data layout is a disaster, and so the best you can do is use the LIKE keyword. It would be better to fix your data


这篇关于我有2张桌子的桌子没有1个盒子没有桌子的桌子没有2个Allbox我想要选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆