从DB连接的别名获取值

时间:2014-10-23 10:43:39

标签: mysql sql

我与别名有3个连接:

别名:

C01556 connection with table User
C02557 connection with table User
C03558 connection with table User

我想知道,是否可以对表User进行插入,使用来自连接别名的值substring。 我们说:

insert into 'User'(name, surname, id) values('John', 'Connor', ?) 

? - id value应该是从第4个位置开始的每个别名的子串(第一种情况下为556,第二种情况下为557 ......)

有可能吗?

谢谢

0 个答案:

没有答案