I have been trying to figure a way to round the value of a number onchange event. Just not working..
<html>
<head>
<script type="text/javascript">
function round(x)
{
var y=document.getElementById(x).value
document.getElementById(x).value=y.Math.round()
}
</script>
</head><body>Enter your...
I have a NTEXT field, I want to only show the first 100 characters from it, not sure how.
I tried this but got the following error.
Select RIGHT(com_text,100) from blog_comment
ERROR: Argument data type ntext is invalid for argument 1 of right function.
I am pretty sure I sure use case, but not 100% if it will be the best way. Here's what I got, I have a blog site, I want to create a query that shows the 10 most recent blogs, But I want to change the value in the date column to show if it posted "Today" or "yesterday" or "2 Days" or "+3 Days...
This trigger works perfectly. Unfortunately, I need it to do more, I THINK , I need it to delete the previous insert that this trigger performed first before it inserts the new values.
Here the whole thing.
I have a table called blog_blog, it has the following trigger on it.
CREATE TRIGGER...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.