Click here to Skip to main content
15,889,200 members
Home / Discussions / Database
   

Database

 
GeneralRe: MySQL syntax error.. Please help... Pin
GuyThiebaut2-Sep-13 23:10
professionalGuyThiebaut2-Sep-13 23:10 
GeneralRe: MySQL syntax error.. Please help... Pin
Jassim Rahma2-Sep-13 23:13
Jassim Rahma2-Sep-13 23:13 
GeneralRe: MySQL syntax error.. Please help... Pin
GuyThiebaut2-Sep-13 23:16
professionalGuyThiebaut2-Sep-13 23:16 
GeneralRe: MySQL syntax error.. Please help... Pin
Jassim Rahma2-Sep-13 23:19
Jassim Rahma2-Sep-13 23:19 
GeneralRe: MySQL syntax error.. Please help... Pin
GuyThiebaut2-Sep-13 23:32
professionalGuyThiebaut2-Sep-13 23:32 
GeneralRe: MySQL syntax error.. Please help... Pin
Jassim Rahma2-Sep-13 23:56
Jassim Rahma2-Sep-13 23:56 
GeneralRe: MySQL syntax error.. Please help... Pin
Jassim Rahma3-Sep-13 0:22
Jassim Rahma3-Sep-13 0:22 
GeneralRe: MySQL syntax error.. Please help... Pin
Jassim Rahma3-Sep-13 1:43
Jassim Rahma3-Sep-13 1:43 
hmm

I was right Smile | :)

the problem is with the DATEDIFF but I still don't know what is it..

I just used TO_DAYS instead and everything is working fine now.

SQL
SET param_days_since_last_visit = (SELECT TO_DAYS(NOW()) - TO_DAYS(created_date) FROM visits WHERE file_no = param_file_no ORDER BY created_date DESC LIMIT 1);


Thanks,
Jassim Rahma[^]
RMC[^] - Universal Medical Equipments[^]


Technology News @ www.JassimRahma.com

QuestionPL/Mysql - can't run procedure with sql security invoker Pin
noislude1-Sep-13 15:59
noislude1-Sep-13 15:59 
QuestionPL/MySQL - can't load file Pin
noislude1-Sep-13 4:22
noislude1-Sep-13 4:22 
QuestionCan't create table - SQL 2008 R2 Pin
ThetaClear1-Sep-13 3:15
ThetaClear1-Sep-13 3:15 
AnswerRe: Can't create table - SQL 2008 R2 Pin
PIEBALDconsult1-Sep-13 3:35
mvePIEBALDconsult1-Sep-13 3:35 
GeneralRe: Can't create table - SQL 2008 R2 Pin
ThetaClear1-Sep-13 3:40
ThetaClear1-Sep-13 3:40 
GeneralRe: Can't create table - SQL 2008 R2 Pin
PIEBALDconsult1-Sep-13 3:53
mvePIEBALDconsult1-Sep-13 3:53 
GeneralRe: Can't create table - SQL 2008 R2 Pin
ThetaClear1-Sep-13 3:57
ThetaClear1-Sep-13 3:57 
GeneralRe: Can't create table - SQL 2008 R2 Pin
PIEBALDconsult1-Sep-13 4:06
mvePIEBALDconsult1-Sep-13 4:06 
GeneralRe: Can't create table - SQL 2008 R2 Pin
ThetaClear1-Sep-13 6:30
ThetaClear1-Sep-13 6:30 
GeneralRe: Can't create table - SQL 2008 R2 Pin
PIEBALDconsult1-Sep-13 6:37
mvePIEBALDconsult1-Sep-13 6:37 
GeneralRe: Can't create table - SQL 2008 R2 Pin
ThetaClear1-Sep-13 8:19
ThetaClear1-Sep-13 8:19 
GeneralRe: Can't create table - SQL 2008 R2 Pin
PIEBALDconsult1-Sep-13 8:25
mvePIEBALDconsult1-Sep-13 8:25 
GeneralRe: Can't create table - SQL 2008 R2 Pin
ThetaClear1-Sep-13 8:47
ThetaClear1-Sep-13 8:47 
GeneralRe: Can't create table - SQL 2008 R2 Pin
PIEBALDconsult2-Sep-13 17:47
mvePIEBALDconsult2-Sep-13 17:47 
Question[SOLVED] PL/MySQL - Duplicated last row Pin
noislude29-Aug-13 3:58
noislude29-Aug-13 3:58 
QuestionHelp Me Pin
Kailashkumar Raghvani28-Aug-13 21:57
Kailashkumar Raghvani28-Aug-13 21:57 
AnswerRe: Help Me Pin
Ingo28-Aug-13 22:30
Ingo28-Aug-13 22:30 

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.