| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|
|||||||
| Visual Basic .NET Microsoft Visual Basic .NET and related questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL select string
I have the following data in my [content] column:
STORE NO : 908 FFDC SIMPANG PULAI (908) TEL : 03-42518482 FAX:03-42604102 FROM DATE : 01/01/09 TO DATE : 31/01/09 How should I write my sql statement so that I can only get the date after "FROM DATE: " and another data after "TO DATE: "??? Currently I have the following code which store the whole content to dataset,but I just want to select 01/01/09 and 31/01/09 to separate column in dataset. Code:
sql = "SELECT [content] FROM DC_VendorDetails_Temp "
objDB.OpenDataSet(dsrepeater, sql)
dsrepeater.Tables(0).TableName = "DC"
dsrepeater.DataSetName = "DC"
|
|
#2
|
||||
|
||||
|
Re: SQL select string
Fix the tables, so that they are in columns. That's what a table is supposed to be.
__________________
David CodeGuru Article: Bound Controls are Evil-VB6 101 Samples: VB & C# VS2008 Samples CodeGuru Reviewer 2006 Dell CSP 2006, 2007 & 2008 MVP Visual Basic If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|