mysql - Updating a Table Column from a Count in another table -


i'm trying update column in table result of count table. here code: (and it's working)

update software2 set totalsoft = (    select count(*)    links    sftwr = software2.softwarename) 

but when try use instance instead = (in last line) no results... code:

update software2 set totalsoft = (    select count(*)    links    sftwr '%software2.softwarename%') 

occurrences 0. help?

update software2  set totalsoft = ( select count(*)                    links                    sftwr concat('%', software2.softwarename, '%')                 ) 

if put column name in quotes treated string. not column content used static string 'software2.softwarename'


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -