Microsoft
Software
Hardware
Network
Question : mysql concat and substr simple question
Hello
I have in my database users, fields name username who contains for instance the value dialogoo
I need to write a simple select function that selects:
pix1/d/di/dialogoo-1.jpg
pix1 is FIXED
d is the first letter
di are the first 2 letters
-1.jpg is fixed
so it it something like
SELECT "pix1/"+{firstLetter(usern
ame)+"/"+{
first2Lett
ers(userna
me)}+"/"+{
username}+
"-1.jpg"
Any clue ?
regards
Answer : mysql concat and substr simple question
yes:
1:
SELECT CONCAT('pix1/', LEFT(username,1),'/',LEFT(username,2), '/', username , '-1.jpg')
Open in New Window
Select All
Random Solutions
I want to create a report based on a query and then export that report to an existing excel spreadsheet
"The specified network name is no longer available" error on Veritas Backup Exec 10d when backing up to disk.
MS Access set combo box values dynamically at runtime
Event 494 on Exchange 2003, server 2003, clustered.
Syntax of computed column at the time of creation of a table
For AMANDEEP ... Part 3. Script 2.
PIVOT Equiv in T-SQL??
W3CTRS error
disable local back button when specific page loads in iframe
turning off hidden files when 'folder options' missing