12-31-2009 08:58 AM
I just began with the utilization of database and I created a small database (with the database toolkit) for technical papers and patents. To store the abstract I use a binary type. I want to know if it is possible to make a search in this field (i.e. SELECT * FROM Documents WHERE Résumé LIKE '%alumina%' AND Provenance = 'journal'; )?
Jean-Marc
12-31-2009 11:48 AM
Have you tried this by executing the querry? This should return the records as an array of variants if the querry is supported by your database. I think Like is supported in binary fields but I usually just use strings not binary types.
12-31-2009 12:00 PM
12-31-2009 12:12 PM
I don't remember where I took the value of 255 characters, this is true?
Jean-Marc
12-31-2009 10:08 PM
J-M wrote:I don't remember where I took the value of 255 characters, this is true?
Jean-Marc
I think you may be confusing the amount of characters with the value of the characters. In a string-type column/field the values can take on 1-255 (i.e., one-byte ASCII values). The length depends on which database you're actually using. For instance, in SQL Server a varchar column/field can be up to 8000 characters.
01-01-2010 11:29 AM
What database are you communicating with (sql server, access ...)? Can you verify that the sql command works outside of labview, there are slightly different sql syntax depending on the database.
01-03-2010 08:14 AM
01-03-2010 09:08 AM
With a small research on google I found: replace ' by ''.
JM