Click here to Skip to main content
15,881,612 members
Home / Discussions / Database
   

Database

 
AnswerRe: MYSQL Pin
ZurdoDev6-Oct-20 10:34
professionalZurdoDev6-Oct-20 10:34 
QuestionDatabase scripts version control process/strategy? Pin
Member 1363071429-Sep-20 6:06
Member 1363071429-Sep-20 6:06 
AnswerRe: Database scripts version control process/strategy? Pin
David Mujica29-Sep-20 7:48
David Mujica29-Sep-20 7:48 
AnswerRe: Database scripts version control process/strategy? Pin
ZurdoDev29-Sep-20 9:05
professionalZurdoDev29-Sep-20 9:05 
QuestionSimple Database design Pin
fdanos23-Sep-20 20:23
professionalfdanos23-Sep-20 20:23 
AnswerRe: Simple Database design Pin
Victor Nijegorodov23-Sep-20 20:54
Victor Nijegorodov23-Sep-20 20:54 
AnswerRe: Simple Database design Pin
Mycroft Holmes24-Sep-20 12:18
professionalMycroft Holmes24-Sep-20 12:18 
QuestionWhy does MySQL not convert dates before 2010-01-01? Pin
fd97507-Sep-20 2:35
professionalfd97507-Sep-20 2:35 
Hi,

I have been trying to add some data to a table we get which is sometimes incomplete

This is the SQL command that is used to fill in a "shipment_date"

SQL
UPDATE IGNORE myTable
SET Shipment_Date = CONCAT(LEFT(Sales_Order_Ship_Date,4), "-", 
 					MID(Sales_Order_Ship_Date, 2, 2), "-", 
 					RIGHT(Sales_Order_Ship_Date, 2) );


In this case Shipment_date is an actual DATE data type whereas the Sales_Order_Ship_Date is a VARCHAR(42) data type.

It works really well on the condition that the original string data represents a date of at least 2010-01-01. The string data is formatted as follows: YYYYMMDD so 2010-01-01 is 20100101 in the string version. It converts perfectly to 2010-01-01 and the same is true for later dates. Any string representing a date before 2010-01-01 though comes out as 0000-00-00.

Does anyone have any ideas as to what is causing this?
AnswerRe: Why does MySQL not convert dates before 2010-01-01? Pin
Jörgen Andersson7-Sep-20 4:18
professionalJörgen Andersson7-Sep-20 4:18 
GeneralRe: Why does MySQL not convert dates before 2010-01-01? Pin
fd97507-Sep-20 21:14
professionalfd97507-Sep-20 21:14 
AnswerRe: Why does MySQL not convert dates before 2010-01-01? Pin
ZurdoDev21-Sep-20 7:03
professionalZurdoDev21-Sep-20 7:03 
QuestionHow to use a FileInfo control to add a filename to an Access database Pin
rodgerm25-Aug-20 14:51
rodgerm25-Aug-20 14:51 
AnswerRe: How to use a FileInfo control to add a filename to an Access database Pin
Richard MacCutchan25-Aug-20 21:16
mveRichard MacCutchan25-Aug-20 21:16 
QuestionDATABASE KEY Pin
Member 1492238425-Aug-20 0:42
Member 1492238425-Aug-20 0:42 
AnswerRe: DATABASE KEY Pin
OriginalGriff25-Aug-20 0:45
mveOriginalGriff25-Aug-20 0:45 
AnswerRe: DATABASE KEY Pin
ZurdoDev31-Aug-20 9:45
professionalZurdoDev31-Aug-20 9:45 
AnswerRe: DATABASE KEY Pin
Eddy Vluggen24-Sep-20 8:12
professionalEddy Vluggen24-Sep-20 8:12 
QuestionAny recommendations ora 01722 ??? Pin
Mahmoud Mohammad23-Aug-20 23:26
Mahmoud Mohammad23-Aug-20 23:26 
AnswerRe: Any recommendations ora 01722 ??? Pin
Richard Deeming24-Aug-20 0:42
mveRichard Deeming24-Aug-20 0:42 
Questionsql server express 2014 named instance not connecting from outside network Pin
Member 1258438314-Aug-20 1:28
Member 1258438314-Aug-20 1:28 
AnswerRe: sql server express 2014 named instance not connecting from outside network Pin
Sandeep Mewara18-Aug-20 23:17
mveSandeep Mewara18-Aug-20 23:17 
QuestionAny good tool (free) for DB Schema? Pin
Sandeep Mewara14-Aug-20 0:01
mveSandeep Mewara14-Aug-20 0:01 
AnswerRe: Any good tool (free) for DB Schema? Pin
Richard MacCutchan14-Aug-20 1:44
mveRichard MacCutchan14-Aug-20 1:44 
GeneralRe: Any good tool (free) for DB Schema? Pin
Sandeep Mewara14-Aug-20 1:45
mveSandeep Mewara14-Aug-20 1:45 
GeneralRe: Any good tool (free) for DB Schema? Pin
Jörgen Andersson14-Aug-20 3:24
professionalJörgen Andersson14-Aug-20 3:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.