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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -