数据库update语句有关问题

WBOY
Release: 2016-06-13 10:37:45
Original
852 people have browsed it

数据库update语句问题
update 表名 set 列名=一段字符串+表id+字符串怎么写

------解决方案--------------------
update 表名 set 列名='一段字符串'+表id+'字符串';
------解决方案--------------------
hehe, #1 楼好幽默 :)

应该用 CONCAT() 吧?……
------解决方案--------------------

探讨

hehe, #1 楼好幽默 :)

应该用 CONCAT() 吧?……

------解决方案--------------------
update 表名 set 列名1='字符串1',列名2='字符串2',列名3='字符串3'....
------解决方案--------------------
update是更改数据操作
------解决方案--------------------
后面加上 where ID=‘1’
------解决方案--------------------
用 . 连接
------解决方案--------------------
他的意思应该是在一个已知ID=‘1’的数据中更新数据
------解决方案--------------------
我也不知道
------解决方案--------------------
update tablename set name='.$name.' where id=1;
------解决方案--------------------
探讨

update winiis_c_fileaq set pageup='../aq/1207/index_'+cast(c_id-1 as varchar(20))+'.html'
我自己写出来了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!