I want to display all email addresses from a column (named email) separated by a comma in html. How would I write a sql query in an html page?
Here is a writeup on it with good notes:
http://wiki.lessthandot.com/index.php/Concatenate_Values_From_Multiple_Rows_Into_One_Column
Related
I get a mail list from a SQL query as a string ('xxx#gmail.com, yyyy#gmail.com'), but when I pass that variable to Job Mail Function, it doesn't recognize as a list but as an email address. I tried to make a transformation to a field with different values (each row is address), but the variable only accepts one value, so I get an error.
I tried passing address list as string
Email addresses are space separated, not comma separated. Replace those commas by spaces and it should work.
I have a text box in a Splunk dashboard, and I'm trying to find out how I can separate values entered into the text box that are separated by commas with an OR clause.
For example:
values entered into text box: 102.99.99, 103.99.93, 203.23.21
index=abc sourcetype=abc src_ip="$ip$"
Any suggestions?
What about using the IN operator?
index=abc sourcetype=abc src_ip IN ($ip$)
I have a SQL query outputting a column which contains data from emails and chart conversations with lot of spaces, special characters, how can I clean and make this data show up in one row so that I could save the table output into a CSV file.
PS: the query output is in millions.
This could help. Instead of the space character use just empty quotes as the third parameter.
Good morning everyone!
I am experimenting with an Access 2007 form which contains a textbox that inserts values into a query. I want to be able to enter multiple values into the textbox. The values are separated by a comma but are also wrapped in quotes. The values in the textbox are inserted in a HAVING Clause.
Here is what the code looks like:
Example:
HAVING Max([COLOR].[COLOR_CODE] In ("11111","22222"))
Now I want to use a textbox on a form to insert the value but I need to handle the quotes. So I converted the values to Numbers both at the SELECT Statement and at the HAVING Clause.
Example:
HAVING Max(CLng([COLOR].[COLOR_CODE] In ([Forms].[MyForm]![txtColorCode])))
The problem is when I enter 11111 into the textbox on the form the query works but when I enter 11111,22222 the query does not work.
So I have this idea; what if I could enter, e.g: 11111,22222,33333,44444 and use code to format the values to "11111","22222","33333","44444"
This way I can abandon the Conversion/CLng and just use the IN Operator with the string.
How can I formatting or transformation so that it is inserted into the query. Maybe on Submit?
I would really appreciate and input or ideas.
Thanks everyone.
Guy
Where are these values coming from? Is a listbox out of the question? Do not forget that you can add and delete values from a list box easily enough and even more easily if you can reference a table. Once you have the values selected, you can iterate over them to create the clause you need.
You will always have to build the query in VBA, you will not be able to refer to a textbox like this in the query design window.
I'm building an international webshop and in the part where a customer has to fill in the address I wonder how I insert the rows in a comma separated text file with a list of stats in my web based MySQL?
Example
AM,04,"Geghark'unik'"
AM,05,"Kotayk'"
AM,06,"Lorri"
AM,07,"Shirak"
AM,08,"Syunik'"
AM,09,"Tavush"
AM,10,"Vayots' Dzor"
I found the whole list here : http://www.maxmind.com/app/fips_include
There's a "File to import" page but I get errors while including the list.
Use MySQL's LOAD DATA INFILE functionality.