Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have date written like this : 01/12/2013 -- how can I display only the first two letter using REGEXP. Thanks
You could use SUBSTRING_INDEX function instead of a regexp:
SELECT SUBSTRING_INDEX(column, '/', 1)
FROM yourtable
You can also use LEFT function
SELECT LEFT(datecol,2) FROM `table`
Demo
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Can anybody provide me regular expression for multiple of 100.
we want to validate value in multiple of 100 .
Regards,
Pradeep
I'd use this:
^[1-9]+[0-9]*00$
First number must be from 1 to 9, then any number of random digits, and it must end in two 0's.
In future looking up a bit of regex would be a good first step, this is very very simple and can be worked out (even by a complete novice) in very little time.
what about this
([0-9]*00)|0
you can check above expression here
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I was in need of an input of type time where users need to enter 'from' and 'to' times and I found this
<input type="time">
but it won't work in firefox , ie etc.. ( as you all know)
So is there any way to implement something similar to this in my time input field where user can select time ( hour: min :AM/PM)
I am a newbie ( with my first website) and this is my first question here.. pls consider
thank you
Try jquery time picker, i always this one
http://pttimeselect.sourceforge.net/example/index.html
If you want something very simple then try
http://keith-wood.name/timeEntry.html
this one is similar to <input type="time">
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I need your help. I have 2 table.
1.company_classifications
company_name-classifications
Company A-1,2,3
Company B-1,2
2.classifications
id-name
1-Music
2-Technologi
3-Food
I need query for result like this :
company_name-classification_name
Company A-Music, Technologi, Food
Company B-Music, Food
select cc.company_name,group_concat(c.name)
from company_classifications cc
inner join classifications c
on c.id = find_in_set(c.id,cc.classifications)
group by cc.company_name;
fiddle
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need help in updating my database,
I have a column named 'questionLink' in table 'question'
which contains names of the images, (image1.jpg, image2.jpg, image3.jpg)
there are 100s of images, and i have to remane with .png extension...
I firstly trying to show the records with this query, which is no way near to the solution.
SELECT * FROM question WHERE "questionLink" LIKE '%.jpg%'
Any help will be appriciated.
Thanks
Are you looking for something like this?
UPDATE question
SET questionLink = REPLACE(questionLink, '.jpg', '.png');
Here is SQLFiddle demo
Further reading REPLACE()
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
Is it possible to use HTML tags in objects description, like links? I am trying to post a link on the wall with my app but it skips HTML stuff.
With regard to your question - no. You can't use HTML tags at all when posting data to Facebook.