sqlite - SELECT and ADD fields in SQL table -


i have db table created follows :

create table mktdb( mktid number(19) not null, featureid number(20) not null, val varchar(100) not null, primary key (id) ); 

i want view records along additional field having current date each row in db.

i tried following sqlite query erroneous :

select *, current_date mktdb,date; 

don't know sqlite after typing "current date sqllite" in google shows me way https://www.sqlite.org/lang_datefunc.html

and problem:

 select *, date('now') mktdb; 

p.s: wanted try sql fiddle. here is:

http://sqlfiddle.com/#!7/92fd6/3


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -